aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-29 16:52:57 -0300
committerEuAndreh <eu@euandre.org>2024-10-01 07:48:50 -0300
commit7d9eefb255b0d9c174cf4ae60b84df9d5a233811 (patch)
treea769c16c877ce4317c2a8541deaa1357b0449173
parentsrc/golite.go: Use hard-coded value for synchronous PRAGMA (diff)
downloadgolite-7d9eefb255b0d9c174cf4ae60b84df9d5a233811.tar.gz
golite-7d9eefb255b0d9c174cf4ae60b84df9d5a233811.tar.xz
src/golite.go: Update doccomments on Open()
-rw-r--r--src/golite.go18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/golite.go b/src/golite.go
index 6f65565..8d9218c 100644
--- a/src/golite.go
+++ b/src/golite.go
@@ -24,8 +24,6 @@ Premises:
- FTS5
- (default) foreign keys
- ICU
-- (pre) update hooks
-- unlock notify?
- (default) AUTOVACUUM
- SQLITE_THREADSAFE
- column metadata
@@ -254,6 +252,7 @@ static int cXClose(sqlite3_vtab_cursor *pCursor) {
if (pzErr) {
return setErrMsg(pCursor, pzErr);
}
+
sqlite3_free(pCursor);
return SQLITE_OK;
}
@@ -2157,17 +2156,10 @@ func (c *SQLiteConn) begin(ctx context.Context) (driver.Tx, error) {
// _defer_foreign_keys=Boolean | _defer_fk=Boolean
// Defer Foreign Keys until outermost transaction is committed.
//
-// _foreign_keys=Boolean | _fk=Boolean
-// Enable or disable enforcement of foreign keys.
-//
// _ignore_check_constraints=Boolean
// This pragma enables or disables the enforcement of CHECK constraints.
// The default setting is off, meaning that CHECK constraints are enforced by default.
//
-// _journal_mode=MODE | _journal=MODE
-// Set journal mode for the databases associated with the current connection.
-// https://www.sqlite.org/pragma.html#pragma_journal_mode
-//
// _locking_mode=X | _locking=X
// Sets the database connection locking-mode.
// The locking-mode is either NORMAL or EXCLUSIVE.
@@ -2179,14 +2171,6 @@ func (c *SQLiteConn) begin(ctx context.Context) (driver.Tx, error) {
// _recursive_triggers=Boolean | _rt=Boolean
// Enable or disable recursive triggers.
//
-// _secure_delete=Boolean|FAST
-// When secure_delete is on, SQLite overwrites deleted content with zeros.
-// https://www.sqlite.org/pragma.html#pragma_secure_delete
-//
-// _synchronous=X | _sync=X
-// Change the setting of the "synchronous" flag.
-// https://www.sqlite.org/pragma.html#pragma_synchronous
-//
// _writable_schema=Boolean
// When this pragma is on, the SQLITE_MASTER tables in which database
// can be changed using ordinary UPDATE, INSERT, and DELETE statements.