localsql

package
v1.7.5-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InMemory

func InMemory(opts ...sql.Opt) *database

Open opens an in-memory local database.

func InMemoryTest added in v1.7.0

func InMemoryTest(tb testing.TB, opts ...sql.Opt) sql.LocalDatabase

InMemoryTest returns an in-mem database for testing and ensures database is closed during `tb.Cleanup`.

func Open

func Open(uri string, opts ...sql.Opt) (*database, error)

Open opens a local database.

func Schema added in v1.7.0

func Schema() (*sql.Schema, error)

Schema returns the schema for the local database.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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