modernc

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package modernc registers the modernc.org/sqlite SQLite driver (pure Go, 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/modernc"
)

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

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

Index

Constants

This section is empty.

Variables

View Source
var Driver = sqlflow.WithDriver(config)

Driver is the sqlflow option that registers and selects the modernc.org/sqlite 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