bcw2

package module
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 3 Imported by: 0

README

Embeddable Wasm build of SQLite

This folder includes an alternative embeddable Wasm build of SQLite, which includes the experimental BEGIN CONCURRENT and Wal2 patches.

It also enables the optional UPDATE … ORDER BY … LIMIT and DELETE … ORDER BY … LIMIT clauses, and the WITHIN GROUP ORDER BY aggregate syntax.

[!IMPORTANT]
This package is experimental. It is built from the bedrock branch of SQLite, since that is currently the most stable, maintained branch to include these features.

[!CAUTION] The Wal2 journaling mode creates databases that other versions of SQLite cannot access.

The build is easily reproducible, and verifiable, using Artifact Attestations.

Documentation

Overview

Package bcw2 embeds SQLite into your application.

Importing package bcw2 initializes the sqlite3.Binary variable with a build of SQLite that includes the BEGIN CONCURRENT and Wal2 patches:

import _ "github.com/ncruces/go-sqlite3/embed/bcw2"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL