sqlite

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite

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

SQLite ...

func New

func New(cfg entity.Config) *SQLite

New SQLite

func (*SQLite) Create

func (b *SQLite) Create(ctx context.Context, items map[string]any) error

Create entity

func (*SQLite) Delete

func (b *SQLite) Delete(ctx context.Context, condition map[string]any) error

Delete entity

func (*SQLite) Get

func (b *SQLite) Get(ctx context.Context, conditional string, values []any) (*entity.UserDB, error)

Get entity

func (*SQLite) GetList

func (b *SQLite) GetList(ctx context.Context) ([]*entity.UserDB, error)

GetList entity

func (*SQLite) Update

func (b *SQLite) Update(ctx context.Context, items, condition map[string]any) error

Update entity

Jump to

Keyboard shortcuts

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