db

package
v0.0.0-...-50458b4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema string = `` /* 856-byte string literal not displayed */

Functions

This section is empty.

Types

type AtomfsDB

type AtomfsDB struct {
	// Expose the DB; although nobody should use it because the helper
	// methods should be ok, you never know...
	DB *sql.DB
	// contains filtered or unexported fields
}

func New

func New(config types.DBBasedConfig) (*AtomfsDB, error)

func (*AtomfsDB) Close

func (db *AtomfsDB) Close() error

func (*AtomfsDB) CreateAtom

func (db *AtomfsDB) CreateAtom(name string, atomType types.AtomType, content io.Reader) (types.Atom, error)

func (*AtomfsDB) CreateMolecule

func (db *AtomfsDB) CreateMolecule(name string, atoms []types.Atom) (types.Molecule, error)

func (*AtomfsDB) DeleteThing

func (db *AtomfsDB) DeleteThing(id int64, table string) error

func (*AtomfsDB) GetAtoms

func (db *AtomfsDB) GetAtoms() ([]types.Atom, error)

func (*AtomfsDB) GetMolecule

func (db *AtomfsDB) GetMolecule(name string) (types.Molecule, error)

func (*AtomfsDB) GetUnusedAtoms

func (db *AtomfsDB) GetUnusedAtoms() ([]types.Atom, error)

func (*AtomfsDB) RenameThing

func (db *AtomfsDB) RenameThing(id int64, table string, newName string) error

Jump to

Keyboard shortcuts

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