database

package
v0.0.0-...-80ea964 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func CreateDatabase

func CreateDatabase(filename string) *Database

func (*Database) Close

func (d *Database) Close() error

func (*Database) Tx

func (d *Database) Tx(fn TxCb) error

type TxCb

type TxCb func(ctx context.Context, tx *ent.Tx) error

Jump to

Keyboard shortcuts

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