ncruces

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ncruces opens SQLite databases with ncruces/go-sqlite3, which is SQLite compiled to WebAssembly, so it's pure Go, without cgo.

Extensions are added to each connection by importing their subfolders, such as full-text search:

import _ "github.com/mutablelogic/go-sqlite/ncruces/fts5"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, path string, opts ...sqlite.Opt) (_ sqlite.PoolConn, err error)

Open opens the database of the path, which is created when it doesn't exist, or of sqlite.Memory.

It's written on one connection, so a transaction, or a write, waits for another to end, and read on many, of sqlite.WithMaxReaders, which don't wait. A file's journal is a write-ahead log, so they read what's committed while it's written. Within a transaction, use its Conn, rather than the pool's, to write, as the pool's waits for the transaction to end.

Types

This section is empty.

Directories

Path Synopsis
Package fts5 adds SQLite's full-text search, of the fts5 virtual table, to each connection, which package ncruces opens, when it's imported:
Package fts5 adds SQLite's full-text search, of the fts5 virtual table, to each connection, which package ncruces opens, when it's imported:
Package rtree adds SQLite's spatial indexes, of the rtree and geopoly virtual tables, to each connection, which package ncruces opens, when it's imported:
Package rtree adds SQLite's spatial indexes, of the rtree and geopoly virtual tables, to each connection, which package ncruces opens, when it's imported:
Package vec1 adds SQLite's vector search, of the vec1 virtual table, to each connection, which package ncruces opens, when it's imported:
Package vec1 adds SQLite's vector search, of the vec1 virtual table, to each connection, which package ncruces opens, when it's imported:

Jump to

Keyboard shortcuts

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