mattn

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: 7 Imported by: 0

Documentation

Overview

Package mattn registers the github.com/mattn/go-sqlite3 SQLite driver 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/mattn"
)

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

Encryption (SQLCipher) is supported when using the jgiannuzzi fork of go-sqlite3. Add this replace directive to your go.mod:

replace github.com/mattn/go-sqlite3 => github.com/jgiannuzzi/go-sqlite3 v1.14.35-0.20260227142656-2c447b9a2806

Index

Constants

This section is empty.

Variables

View Source
var Driver = sqlflow.WithDriver(config)

Driver is the sqlflow option that registers and selects the mattn/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