sqlite

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() jdb.Driver

Types

type SqlLite

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

func (*SqlLite) ChangePassword

func (s *SqlLite) ChangePassword(username, password, confirmation string) error

func (*SqlLite) CleanCache added in v1.0.6

func (s *SqlLite) CleanCache() error

func (*SqlLite) Command

func (s *SqlLite) Command(command *jdb.Command) (et.Items, error)

Command

func (*SqlLite) Connect

func (s *SqlLite) Connect(params et.Json) error

* * Connect * @param params et.Json * @return error *

func (*SqlLite) Count

func (s *SqlLite) Count(ql *jdb.Ql) (int, error)

func (*SqlLite) CreateCore added in v1.0.6

func (s *SqlLite) CreateCore() error

Core

func (*SqlLite) CreateDatabase

func (s *SqlLite) CreateDatabase(name string) error

Database

func (*SqlLite) CreateModel added in v1.0.6

func (s *SqlLite) CreateModel(model *jdb.Model) error

func (*SqlLite) CreateSchema added in v1.0.6

func (s *SqlLite) CreateSchema(name string) error

Schema

func (*SqlLite) CreateUser

func (s *SqlLite) CreateUser(username, password, confirmation string) error

func (*SqlLite) CurrentSerie

func (s *SqlLite) CurrentSerie(tag string) int64

func (*SqlLite) Data added in v1.0.6

func (s *SqlLite) Data(source, sql string, arg ...any) (et.Items, error)

func (*SqlLite) DeleteCache added in v1.0.6

func (s *SqlLite) DeleteCache(key string) error

func (*SqlLite) DeleteFlow added in v1.0.6

func (s *SqlLite) DeleteFlow(id string) error

func (*SqlLite) DeleteKey added in v1.0.6

func (s *SqlLite) DeleteKey(key string) error

func (*SqlLite) DeleteUser

func (s *SqlLite) DeleteUser(username string) error

func (*SqlLite) Disconnect

func (s *SqlLite) Disconnect() error

func (*SqlLite) DropDatabase

func (s *SqlLite) DropDatabase(name string) error

func (*SqlLite) DropModel

func (s *SqlLite) DropModel(model *jdb.Model) error

func (*SqlLite) DropSchema

func (s *SqlLite) DropSchema(name string) error

func (*SqlLite) Exec added in v1.0.6

func (s *SqlLite) Exec(sql string, arg ...any) error

Query

func (*SqlLite) Exists

func (s *SqlLite) Exists(ql *jdb.Ql) (bool, error)

func (*SqlLite) FindCache added in v1.0.6

func (s *SqlLite) FindCache(search string, page, rows int) (et.List, error)

func (*SqlLite) FindFlows added in v1.0.6

func (s *SqlLite) FindFlows(search string, page, rows int) (et.List, error)

func (*SqlLite) FindKeys added in v1.0.6

func (s *SqlLite) FindKeys(search string, page, rows int) (et.List, error)

func (*SqlLite) GetCache added in v1.0.6

func (s *SqlLite) GetCache(key string) (et.KeyValue, error)

func (*SqlLite) GetFlow added in v1.0.6

func (s *SqlLite) GetFlow(id string) (jdb.Flow, error)

func (*SqlLite) GetKey added in v1.0.6

func (s *SqlLite) GetKey(key string) (et.KeyValue, error)

func (*SqlLite) GetSerie

func (s *SqlLite) GetSerie(tag string) int64

Series

func (*SqlLite) GrantPrivileges

func (s *SqlLite) GrantPrivileges(username, dbName string) error

User

func (*SqlLite) LoadTable added in v1.0.6

func (s *SqlLite) LoadTable(model *jdb.Model) (bool, error)

Model

func (*SqlLite) Name

func (s *SqlLite) Name() string

func (*SqlLite) NextCode

func (s *SqlLite) NextCode(tag, prefix string) string

func (*SqlLite) One added in v1.0.6

func (s *SqlLite) One(sql string, arg ...any) (et.Item, error)

func (*SqlLite) Query

func (s *SqlLite) Query(sql string, arg ...any) (et.Items, error)

func (*SqlLite) Select

func (s *SqlLite) Select(ql *jdb.Ql) (et.Items, error)

func (*SqlLite) SetCache added in v1.0.6

func (s *SqlLite) SetCache(key string, value []byte, duration time.Duration) error

Cache

func (*SqlLite) SetFlow added in v1.0.6

func (s *SqlLite) SetFlow(name string, value []byte) error

Function

func (*SqlLite) SetKey added in v1.0.6

func (s *SqlLite) SetKey(key string, value []byte) error

Key Value

func (*SqlLite) SetMain

func (s *SqlLite) SetMain(arg et.Json) error

func (*SqlLite) SetSerie

func (s *SqlLite) SetSerie(tag string, val int) int64

Jump to

Keyboard shortcuts

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