database

package
v0.0.0-...-aa40251 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SQLiteConnectURL

func SQLiteConnectURL(name string) string

Types

type Database

type Database struct {
	Ctx    context.Context
	Client *ent.Client
}

func New

func New(ctx context.Context) (*Database, error)

func (*Database) Close

func (c *Database) Close() error

func (*Database) Tx

func (c *Database) Tx(ctx context.Context) (*ent.Tx, error)

Jump to

Keyboard shortcuts

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