aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-29 13:02:28 +0200
committerGert-Jan Timmer <gjr.timmer@gmail.com>2018-05-29 13:02:28 +0200
commit46fb6884f2e1455e94c70a6412df92c4ae03200a (patch)
treec60b4f963bcfe71971352f9c392fe6023534e733 /sqlite3.go
parentADD: Additional Copyright line (diff)
downloadgolite-46fb6884f2e1455e94c70a6412df92c4ae03200a.tar.gz
golite-46fb6884f2e1455e94c70a6412df92c4ae03200a.tar.xz
Update README
ADD: Comments for SQLite Access Mode ADD: Comments for SQLite Shared-Cache Mode UPD: README * Add Access Mode in Connection String Table
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index b4d3f7e..8d915bf 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -793,6 +793,23 @@ func errorString(err Error) string {
// file:test.db?cache=shared&mode=memory
// :memory:
// file::memory:
+//
+// mode
+// Access mode of the database.
+// https://www.sqlite.org/c3ref/open.html
+// Values:
+// - ro
+// - rw
+// - rwc
+// - memory
+//
+// shared
+// SQLite Shared-Cache Mode
+// https://www.sqlite.org/sharedcache.html
+// Values:
+// - shared
+// - private
+//
// go-sqlite3 adds the following query parameters to those used by SQLite:
// _loc=XXX
// Specify location of time format. It's possible to specify "auto".