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 ¶
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.
Source Files
¶
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: |