mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-30 01:22:28 +00:00
@@ -182,7 +182,7 @@ func (dbobj *MySQLDB) CloseDB() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// BackupDB function backups existing databsae and prints database structure to http.ResponseWriter
|
// BackupDB function backups existing database and prints database structure to http.ResponseWriter
|
||||||
func (dbobj MySQLDB) BackupDB(w http.ResponseWriter) {
|
func (dbobj MySQLDB) BackupDB(w http.ResponseWriter) {
|
||||||
//err := sqlite3dump.DumpDB(dbobj.db, w)
|
//err := sqlite3dump.DumpDB(dbobj.db, w)
|
||||||
//if err != nil {
|
//if err != nil {
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ func (dbobj *PGSQLDB) CloseDB() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// BackupDB function backups existing databsae and prints database structure to http.ResponseWriter
|
// BackupDB function backups existing database and prints database structure to http.ResponseWriter
|
||||||
func (dbobj PGSQLDB) BackupDB(w http.ResponseWriter) {
|
func (dbobj PGSQLDB) BackupDB(w http.ResponseWriter) {
|
||||||
//err := sqlite3dump.DumpDB(dbobj.db, w)
|
//err := sqlite3dump.DumpDB(dbobj.db, w)
|
||||||
//if err != nil {
|
//if err != nil {
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ func (dbobj *SQLiteDB) CloseDB() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// BackupDB function backups existing databsae and prints database structure to http.ResponseWriter
|
// BackupDB function backups existing database and prints database structure to http.ResponseWriter
|
||||||
func (dbobj SQLiteDB) BackupDB(w http.ResponseWriter) {
|
func (dbobj SQLiteDB) BackupDB(w http.ResponseWriter) {
|
||||||
err := sqlite3dump.DumpDB(dbobj.db, w)
|
err := sqlite3dump.DumpDB(dbobj.db, w)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user