Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sqlite provides a SQLite-backed storage driver using ent ORM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*entdriver.EntDriver
	// contains filtered or unexported fields
}

Driver implements storage.Driver using SQLite via the ent driver

func NewDriver

func NewDriver(_ context.Context, dbPath string) (*Driver, error)

NewDriver creates a new SQLite-backed storer. The dbPath can be a file path or ":memory:" for an in-memory database.

NewDriver does not run schema migrations. Call Migrate() after construction to apply any pending migrations.

func (*Driver) Migrate

func (d *Driver) Migrate(ctx context.Context) error

Migrate applies any pending schema migrations using the versioned migration engine.

Jump to

Keyboard shortcuts

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