ncruces

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ncruces registers the github.com/ncruces/go-sqlite3 SQLite driver (WebAssembly, no CGo) and exports a ready-to-use sqlflow.Option that selects it.

Import this package instead of importing the driver and calling WithDriver separately:

import (
    "github.com/avalonbits/sqlflow"
    "github.com/avalonbits/sqlflow/drivers/ncruces"
)

db, err := sqlflow.OpenDB(path, querier, ncruces.Driver, ...)

This driver does not support at-rest encryption. Calling OpenEncryptedDB or NewEncryptedPool with this driver returns sqlflow.ErrEncryptionNotSupported.

Note: this package embeds the SQLite WebAssembly binary via the github.com/ncruces/go-sqlite3/embed sub-package, which adds a few MB to your binary. If binary size is a concern, consider the mattn or modernc drivers instead.

Index

Constants

This section is empty.

Variables

View Source
var Driver = sqlflow.WithDriver(config)

Driver is the sqlflow option that registers and selects the ncruces/go-sqlite3 SQLite driver. Pass it to any sqlflow constructor.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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