sqlite

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

func (*Operation) CreateAuto

func (o *Operation) CreateAuto(auto store.Auto) (store.AutoID, error)

func (*Operation) CreateBar

func (o *Operation) CreateBar(bar store.Bar) (store.BarID, error)

func (*Operation) CreateFoo

func (o *Operation) CreateFoo(foo store.Foo) (store.FooID, error)

func (*Operation) DeleteAuto

func (o *Operation) DeleteAuto(id store.AutoID) error

func (*Operation) DeleteBar

func (o *Operation) DeleteBar(id store.BarID) error

func (*Operation) DeleteFoo

func (o *Operation) DeleteFoo(id store.FooID) error

func (*Operation) GetAuto

func (o *Operation) GetAuto(id store.AutoID) (*store.Auto, error)

func (*Operation) GetBar

func (o *Operation) GetBar(id store.BarID) (*store.Bar, error)

func (*Operation) GetFoo

func (o *Operation) GetFoo(id store.FooID) (*store.Foo, error)

func (*Operation) ImportAutos

func (o *Operation) ImportAutos(entities ...store.Auto) error

func (*Operation) ImportBars

func (o *Operation) ImportBars(entities ...store.Bar) error

func (*Operation) ImportFoos

func (o *Operation) ImportFoos(entities ...store.Foo) error

func (*Operation) SelectAuto

func (o *Operation) SelectAuto() store.AutoSelect

func (*Operation) SelectBar

func (o *Operation) SelectBar() store.BarSelect

func (*Operation) SelectFoo

func (o *Operation) SelectFoo() store.FooSelect

func (*Operation) UpdateAuto

func (o *Operation) UpdateAuto(auto store.Auto) error

func (*Operation) UpdateBar

func (o *Operation) UpdateBar(bar store.Bar) error

func (*Operation) UpdateFoo

func (o *Operation) UpdateFoo(foo store.Foo) error

type SQLite

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

func New

func New(con string) (*SQLite, error)

New will create a store with sqlite backend

func (*SQLite) Close

func (p *SQLite) Close() error

func (*SQLite) Create

func (p *SQLite) Create() error

func (*SQLite) Do

func (p *SQLite) Do(description string, f func(store.Operation) error) (err error)

func (*SQLite) Drop

func (p *SQLite) Drop() error

func (*SQLite) Ping

func (p *SQLite) Ping() error

func (*SQLite) Reset

func (p *SQLite) Reset() error

Jump to

Keyboard shortcuts

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