db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() string

DefaultPath returns the default database path for the active team.

Types

type DB

type DB struct {
	*ent.Client
}

func New

func New(dbPath string) (*DB, error)

New creates a new database connection and runs migrations

func NewTestDB

func NewTestDB(t *testing.T) *DB

NewTestDB creates an in-memory SQLite database for testing

func (*DB) Close

func (db *DB) Close() error

Close closes the database connection

Jump to

Keyboard shortcuts

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