dependabot[bot] 269306c5c8 Bump golang.org/x/sys from 0.14.0 to 0.15.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/sys/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-28 02:00:06 +00:00
2023-11-28 01:55:26 +00:00
2023-11-23 15:59:24 +00:00
2023-11-28 01:55:26 +00:00
2023-11-27 23:35:43 +00:00
2023-11-25 00:39:20 +00:00
2023-11-17 19:06:10 +00:00
2023-11-28 01:55:26 +00:00
2023-11-27 15:37:53 +00:00
2023-11-28 01:55:26 +00:00
2023-03-05 12:20:02 +00:00
2023-11-09 16:35:45 +00:00
2023-11-20 18:12:56 +00:00
2023-11-25 00:10:32 +00:00
2023-11-25 00:10:32 +00:00
2023-11-27 15:37:53 +00:00
2023-11-25 00:10:32 +00:00
2023-11-21 13:40:55 +00:00
2023-03-08 17:39:41 +00:00
2023-11-27 15:37:53 +00:00
2023-09-01 01:23:25 +01:00
2023-11-24 15:33:17 +00:00
2023-08-09 16:16:45 +01:00
2023-11-25 00:39:20 +00:00
2023-11-09 16:16:48 +00:00
2023-01-11 14:54:42 +00:00
2023-11-09 16:35:45 +00:00
2023-11-04 01:18:25 +00:00
2023-11-23 15:59:24 +00:00
2023-10-16 12:26:25 +01:00
2023-11-25 00:10:32 +00:00
2023-11-23 03:36:54 +00:00
2023-11-25 00:10:32 +00:00
2023-11-09 16:35:45 +00:00
2023-11-22 15:06:39 +00:00
2023-11-09 16:35:45 +00:00
2023-11-23 12:53:28 +00:00
2023-11-25 00:10:32 +00:00

Go bindings to SQLite using Wazero

Go Reference Go Report Go Coverage

Go module github.com/ncruces/go-sqlite3 wraps a WASM build of SQLite, and uses wazero to provide cgo-free SQLite bindings.

Loadable extensions

Advanced features

Caveats

This module replaces the SQLite OS Interface (aka VFS) with a pure Go implementation. This has benefits, but also comes with some drawbacks.

Write-Ahead Logging

Because WASM does not support shared memory, WAL support is limited.

To work around this limitation, SQLite is patched to always use EXCLUSIVE locking mode for WAL databases.

Because connection pooling is incompatible with EXCLUSIVE locking mode, to use the database/sql driver with WAL mode databases you should disable connection pooling by calling db.SetMaxOpenConns(1).

File Locking

POSIX advisory locks, which SQLite uses on Unix, are broken by design.

On Linux, macOS and illumos, this module uses OFD locks to synchronize access to database files. OFD locks are fully compatible with POSIX advisory locks.

On BSD Unixes, this module uses BSD locks. On BSD Unixes, BSD locks are fully compatible with POSIX advisory locks.

On Windows, this module uses LockFile, LockFileEx, and UnlockFile, like SQLite.

On all other platforms, file locking is not supported, and you must use nolock=1 to open database files. To use the database/sql driver with nolock=1 you must disable connection pooling by calling db.SetMaxOpenConns(1).

Testing

The pure Go VFS is tested by running SQLite's mptest on Linux, macOS, Windows and FreeBSD. Performance is tested by running speedtest1.

Alternatives

Description
No description provided
Readme MIT 49 MiB
Languages
Go 89.9%
C 5.2%
WebAssembly 3.5%
Shell 1.4%