diff options
Diffstat (limited to 'vendor/modernc.org/sqlite/doc.go')
-rw-r--r-- | vendor/modernc.org/sqlite/doc.go | 84 |
1 files changed, 40 insertions, 44 deletions
diff --git a/vendor/modernc.org/sqlite/doc.go b/vendor/modernc.org/sqlite/doc.go index d572e1eb8..374da077b 100644 --- a/vendor/modernc.org/sqlite/doc.go +++ b/vendor/modernc.org/sqlite/doc.go @@ -8,12 +8,12 @@ // SQLite is an in-process implementation of a self-contained, serverless, // zero-configuration, transactional SQL database engine. // -// Thanks +// # Thanks // // This project is sponsored by Schleibinger Geräte Teubert u. Greim GmbH by // allowing one of the maintainers to work on it also in office hours. // -// Supported platforms and architectures +// # Supported platforms and architectures // // These combinations of GOOS and GOARCH are currently supported // @@ -33,13 +33,13 @@ // windows amd64 3.41.2 // windows arm64 3.41.2 // -// Builders +// # Builders // // Builder results available at: // // https://modern-c.appspot.com/-/builder/?importpath=modernc.org%2fsqlite // -// Speedtest1 +// # Speedtest1 // // Numbers for the pure Go version were produced by // @@ -92,11 +92,15 @@ // // This particular test executes 16.1% faster in the C version. // -// Changelog +// # Changelog +// +// 2023-07-11 v1.24.0: +// +// Add (*conn).{Serialize,Deserialize,NewBackup,NewRestore} methods, add Backup type. // // 2023-06-01 v1.23.0: // -// Allow registering aggregate functions +// Allow registering aggregate functions. // // 2023-04-22 v1.22.0: // @@ -127,7 +131,7 @@ // // Support scalar application defined functions written in Go. // -// https://www.sqlite.org/appfunc.html +// https://www.sqlite.org/appfunc.html // // 2022-03-13 v1.15.0: // @@ -142,8 +146,6 @@ // // Support freebsd/amd64. // -// Changelog -// // 2021-06-23 v1.11.0: // // Upgrade to use sqlite 3.36.0, release notes at https://www.sqlite.org/releaselog/3_36_0.html. @@ -231,7 +233,7 @@ // // 2017-06-05 Linux/Intel no more uses the VM (cznic/virtual). // -// Connecting to a database +// # Connecting to a database // // To access a Sqlite database do something like // @@ -248,7 +250,7 @@ // // ... // -// Debug and development versions +// # Debug and development versions // // A comma separated list of options can be passed to `go generate` via the // environment variable GO_GENERATE. Some useful options include for example: @@ -263,11 +265,10 @@ // // Note: To run `go generate` you need to have modernc.org/ccgo/v3 installed. // -// Hacking +// # Hacking // // This is an example of how to use the debug logs in modernc.org/libc when hunting a bug. // -// // 0:jnml@e5-1650:~/src/modernc.org/sqlite$ git status // On branch master // Your branch is up to date with 'origin/master'. @@ -290,10 +291,8 @@ // [10723 sqlite.test] 2023-04-06 11:22:48.288066057 +0200 CEST m=+0.000707150 // 0:jnml@e5-1650:~/src/modernc.org/sqlite$ // -// // The /tmp/libc.log file is created as requested. No useful messages there because none are enabled in libc. Let's try to enable Xwrite as an example. // -// // 0:jnml@e5-1650:~/src/modernc.org/libc$ git status // On branch master // Your branch is up to date with 'origin/master'. @@ -344,42 +343,39 @@ // } // 0:jnml@e5-1650:~/src/modernc.org/libc$ // -// // We need to tell the Go build system to use our local, patched/debug libc: // -// // 0:jnml@e5-1650:~/src/modernc.org/sqlite$ go work use $(go env GOPATH)/src/modernc.org/libc // 0:jnml@e5-1650:~/src/modernc.org/sqlite$ go work use . // -// // And run the test again: // -// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ rm -f /tmp/libc.log ; go test -v -tags=libc.dmesg -run TestScalar ; ls -l /tmp/libc.log -// test binary compiled for linux/amd64 -// === RUN TestScalar -// --- PASS: TestScalar (0.26s) -// PASS -// ok modernc.org/sqlite 0.285s -// -rw-r--r-- 1 jnml jnml 918 Apr 6 11:29 /tmp/libc.log -// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ cat /tmp/libc.log -// [11910 sqlite.test] 2023-04-06 11:29:13.143589542 +0200 CEST m=+0.000689270 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x200: 0x200 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0xc: 0xc -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x200: 0x200 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x1000: 0x1000 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x1000: 0x1000 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0xc: 0xc -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 -// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 -// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ -// -// Sqlite documentation +// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ rm -f /tmp/libc.log ; go test -v -tags=libc.dmesg -run TestScalar ; ls -l /tmp/libc.log +// test binary compiled for linux/amd64 +// === RUN TestScalar +// --- PASS: TestScalar (0.26s) +// PASS +// ok modernc.org/sqlite 0.285s +// -rw-r--r-- 1 jnml jnml 918 Apr 6 11:29 /tmp/libc.log +// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ cat /tmp/libc.log +// [11910 sqlite.test] 2023-04-06 11:29:13.143589542 +0200 CEST m=+0.000689270 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x200: 0x200 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0xc: 0xc +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x200: 0x200 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x1000: 0x1000 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x1000: 0x1000 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0x4: 0x4 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 8 0xc: 0xc +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 +// [11910 sqlite.test] libc_linux.go:337:Xwrite: 7 0x1000: 0x1000 +// 0:jnml@e5-1650:~/src/modernc.org/sqlite$ +// +// # Sqlite documentation // // See https://sqlite.org/docs.html package sqlite // import "modernc.org/sqlite" |