aboutsummaryrefslogtreecommitdiff
path: root/backup.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Build with "go tool" and hackishly bundle code from same package into one ↵EuAndreh2024-08-121-85/+0
| | | | file each
* change angle bracket import to quotes (#868)Hanzhen Yi2021-10-261-1/+1
|
* Add build constraints for non cgoYasuhiro Matsumoto2019-11-181-1/+1
|
* Improve readability of Backup()codesoap2019-10-311-3/+3
|
* fix breaking compatibility.Yasuhiro Matsumoto2017-03-211-2/+2
| | | | | | revert cf4bd560f1588d96c502b4c3407fe1a10cef4a28 close #394
* fix buildYasuhiro Matsumoto2017-03-201-2/+2
|
* go vet && golintYasuhiro Matsumoto2016-11-051-4/+10
|
* fix double free in SQLiteBackup.Close() on errorJoe Shaw2016-10-271-2/+7
| | | | | | | | | | | The sqlite3_backup_finish() function never fails, it just returns the error code from previous operations. Previously if it returned an error, the finalizer wouldn't be unset and sqlite3_backup_finish() would be run again on an already-finished backup. This results in a double-free and often segfaults. The error handling is described in more detail in the "Error handling" section of https://www.sqlite.org/backup.html.
* Move sqlite3 amalgation files a directory up.David Bariod2016-04-021-0/+4
| | | | | | The purpose is to ease the use of vendoring files like godep. The C sqlite3 files have been added a go compilation conditional flag Fix #293
* Rename sqlite3.{c,h} to sqlite3-binding.{c,h}Stéphane Graber2015-03-111-1/+1
| | | | | | | | | | | | | This fixes the problem where when building with gccgo, sqlite3.c is overwritten, leading to a build failure. An alternative would have been to move sqlite3*.{c,h} to a subdirectory, but that seems to confuse the linker a fair bit and would just swap one implementation-dependent issue for another. Closes #20 Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
* Backup.Step may handle SQLITE_BUSY / SQLITE_LOCKED specifically. Close #133mattn2014-11-141-1/+1
|
* set/reset finalizer to free SQLite3 handlesmattn2014-11-141-7/+16
|
* Add one blank line for godocmattn2014-08-181-0/+1
|
* Add license headermattn2014-08-181-0/+4
|
* Use codemattn2014-08-181-1/+1
|
* Changed interface for backup stepShuhao Wu2014-07-111-13/+10
|
* Added an IsDone method for backupShuhao Wu2014-07-101-0/+9
|
* Don't return error when succeededmattn2014-05-271-2/+10
|
* Add backup. Close #104mattn2014-01-301-0/+42