aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add support for sqlite3_unlock_notifyMura Li2018-10-201-4/+41
|/ /
* | Fix buildYasuhiro Matsumoto2018-09-111-1/+1
| | | | | | | | Related on #623
* | Merge pull request #623 from graf0/feature/#619mattn2018-09-111-0/+55
|\ \ | |/ |/| implementation of set_authorizer interface
| * clearer const formattingGrzegorz Marszałek2018-08-301-8/+13
| | | | | | | | with comments what const are used for what
| * implementation of set_authorizer interfaceGrzegorz Marszałek2018-08-251-3/+53
| |
* | Update go doc comments to refer to correct interfaces.AndrewMurrell2018-08-211-6/+6
|/ | | | | | sql.Driver, sql.Conn, sql.Tx sql.Stmt, and sql.Rows are not interfaces. Updated the comments to refer to the correct interfaces: driver.Driver, driver.Conn, driver.Tx, driver.Stmt, and driver.Rows.
* Ensure that SqliteStmt.closed property is guarded.Collin Van Dyck2018-07-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the closed property of the SQLiteRows's *SqliteStmt was not guarded, it was causing an issue during context cancellation. https://github.com/segmentio/go-sqlite3/blob/be424d27acde822f080bdcd8a7ae6abd4d7d801e/sqlite3.go#L1785-L1796 When a statement is performing a query(), if it determines that the context has been canceled, it will launch a goroutine that closes the resulting driver.Rows if it's not already completed. If the driver.Rows is not done (and the context has been canceled), it will interrupt the connection and more importantly, perform a rows.Close(). The method rows.Close() guards the closed bool with a sync.Mutex to set it to true. If a reader is reading from the SqliteRow, it will call Next() and that performs this check: https://github.com/segmentio/go-sqlite3/blob/be424d27acde822f080bdcd8a7ae6abd4d7d801e/sqlite3.go#L1915-L1917 Because this is not guarded, a data race ensues, and this was actually caught by the Go race detector recently. I didn't include a test case here because the fix seemed straightforward enough and because race conditions are hard to test for. It's been verified in another program that this fixes the issue. If tests should be provided I'm more than happy to do so.
* fix/118Gert-Jan Timmer2018-06-121-2/+0
| | | | | | * Added TestMultiBlobs * Removed dead code Fixes #118
* Adds GetFilename (sqlite3_db_filename) to SqliteConnZachary Gramana2018-06-121-0/+11
|
* Merge pull request #586 from mattn/feature/userauthmattn2018-06-081-2/+185
|\ | | | | Feature/userauth
| * ADD: User Authentication Password EncodersGert-Jan Timmer2018-06-051-0/+58
| | | | | | Allow user to choose how to encode passwords with connection string overrides of embedded `sqlite_crypt` function.
| * Implemented goconvey for User Authentication TestsGert-Jan Timmer2018-06-041-5/+5
| | | | | | Reference #580
| * Update User AuthenticationGert-Jan Timmer2018-06-011-12/+18
| | | | | | | | | | | | * Update bindings * Add user authentication sql functions Reference #579
| * StashGert-Jan Timmer2018-05-311-4/+4
| | | | | | [ci skip]
| * UPD: User AuthenticationGert-Jan Timmer2018-05-311-8/+2
| | | | | | | | | | Implemented table check; only activate User Authentication on a database which has no UA enabled. Closes #582
| * ADD: User authenticationGert-Jan Timmer2018-05-301-2/+127
| | | | | | | | | | | | | | | | * User Authentication Implementation * Rename file to conform to fileformat `sqlite3_*_omit.go` * Updated sqlite3-binding.* with new upgrade tool * Add: callbackRetNil required for error type return because of adding `RegisterFunc`s directly on the connection. * Add: TestCreateAuthDatabase
* | Add nil check in bind and a testLucas Manuel Rodriguez2018-05-301-4/+8
|/
* Fix: Display of secure_delete error messageGert-Jan Timmer2018-05-291-1/+1
|
* Fix: Condition of queryOnly VariableGert-Jan Timmer2018-05-291-1/+1
|
* Fix: Connection DSN KeysGert-Jan Timmer2018-05-291-11/+40
| | | | | | | | * Conform keys to match PRAGMA * UPD: README * Fix error of _auto_vacuum * Fix error of _case_sensitive_like * Fix error of _locking_mode * Fix error of _secure_delete
* ADD: PRAGMA writable_schemaGert-Jan Timmer2018-05-291-4/+35
|
* ADD: PRAGMA synchronousGert-Jan Timmer2018-05-291-1/+40
|
* Add: PRAGMA secure_deleteGert-Jan Timmer2018-05-291-0/+34
| | | | ADD: Connection PRAGMA ADD: Build tag for secure_delete mode: FAST
* ADD: PRAGMA query_onlyGert-Jan Timmer2018-05-291-0/+27
|
* Add: Documentation for opening as ImmutableGert-Jan Timmer2018-05-291-0/+9
|
* ADD: PRAGMA locking_modeGert-Jan Timmer2018-05-291-1/+28
|
* ADD: PRAGMA journal_modeGert-Jan Timmer2018-05-291-0/+25
|
* Fix: String ToLower for PRAGMA'sGert-Jan Timmer2018-05-291-4/+5
|
* Update READMEGert-Jan Timmer2018-05-291-0/+17
| | | | | | ADD: Comments for SQLite Access Mode ADD: Comments for SQLite Shared-Cache Mode UPD: README * Add Access Mode in Connection String Table
* ADD: Additional Copyright lineGert-Jan Timmer2018-05-291-0/+1
|
* Update CommentsGert-Jan Timmer2018-05-291-3/+3
|
* ADD: PRAGMA ignore_check_constraintsGert-Jan Timmer2018-05-291-0/+28
|
* Update CommentsGert-Jan Timmer2018-05-291-0/+1
|
* ADD: PRAGMA defer_foreign_keysGert-Jan Timmer2018-05-291-0/+34
|
* Update Recursive TriggersGert-Jan Timmer2018-05-291-1/+8
| | | ADD: Multiple Key
* Fix: pkeyGert-Jan Timmer2018-05-291-3/+5
| | | Ensure pkey is empty for next condition
* Update Foreign Keys PRAGMAGert-Jan Timmer2018-05-291-4/+9
| | | ADD: Multiple key
* Update Busy Timeout PRAGMAGert-Jan Timmer2018-05-291-1/+10
| | | ADD: multiple key
* ADD: PRAGMA case_sensitive_likeGert-Jan Timmer2018-05-291-8/+47
| | | | ADD: Comments UPD: README
* Update Connection OptionsGert-Jan Timmer2018-05-291-42/+81
| | | | | | | | | | * Rewrite order of options * ADD: PRAGMA auto_vacuum * ADD: Multi Boolean values * UPD: README * FIX: Case-Sensitive values * Reduced code for: - foreign_keys - recursive_triggers
* fmt updateGert-Jan Timmer2018-05-271-5/+9
| | | | | | Fix: Placed all +build tags in the same location Fix: Split CFLAGS, LDFLAGS into seperate lines for readability and lookup Fix: Placed empty line between copyright comments and build tags for readability Fix: Placed OS specfic cgo flags at the end if the cgo sections contains multiple lines.
* Merge branch 'master' into fix/walmattn2018-05-241-0/+2
|\
| * Merge pull request #564 from GJRTimmer/fix/213mattn2018-05-241-0/+1
| |\ | | | | | | Fix #213
| | * ADD: SQLITE_ENABLE_UPDATE_DELETE_LIMITGert-Jan Timmer2018-05-231-0/+1
| | | | | | | | | Fixes #213
| * | ADD: SQLITE_OMIT_DEPRECATEDGert-Jan Timmer2018-05-231-0/+1
| |/
* / ADD: SQLITE_DEFAULT_WAL_SYNCHRONOUSGert-Jan Timmer2018-05-231-0/+1
|/
* Merge pull request #540 from mattn/open-modemattn2018-04-191-3/+16
|\ | | | | add _mutex flag to specify SQLITE_OPEN_NOMUTEX or SQLITE_OPEN_FULLMUTEX
| * add _mutex flag to specify SQLITE_OPEN_NOMUTEX or SQLITE_OPEN_FULLMUTEXYasuhiro Matsumoto2018-03-161-3/+16
| |
* | disable pread64/pwrite64 on androidYasuhiro Matsumoto2018-04-181-1/+1
| |
* | Merge pull request #549 from mjtrangoni/fix-linter-issuesmattn2018-04-171-9/+15
|\ \ | |/ |/| Fix linter issues