sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_FUNCION_NOT_FOUND = "Function not found"
	MSG_COMMAND_NOT_FOUND = "Command not found"
)

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

* * ChangePassword * @param username string, password string, confirmation string * @return error *

func (*SqlLite) Command

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

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) CreateDatabase

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

* * CreateDatabase * @param name string * @return error *

func (*SqlLite) CreateUser

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

* * CreateUser * @param username string, password string, confirmation string * @return error *

func (*SqlLite) CurrentSerie

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

func (*SqlLite) DeleteUser

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

* * DeleteUser * @param username string * @return error *

func (*SqlLite) Disconnect

func (s *SqlLite) Disconnect() error

func (*SqlLite) DropDatabase

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

* * DropDatabase * @param name string * @return error *

func (*SqlLite) DropModel

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

func (*SqlLite) DropSchema

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

func (*SqlLite) Exists

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

func (*SqlLite) GetSerie

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

func (*SqlLite) GrantPrivileges

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

* * GrantPrivileges * @param username string, database string * @return error *

func (*SqlLite) LoadModel

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

func (*SqlLite) LoadSchema

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

Schema

func (*SqlLite) MutateModel

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

func (*SqlLite) Name

func (s *SqlLite) Name() string

func (*SqlLite) NextCode

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

func (*SqlLite) Query

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

func (*SqlLite) QueryTx

func (s *SqlLite) QueryTx(tx *jdb.Tx, sql string, arg ...any) (et.Items, error)

func (*SqlLite) Select

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

func (*SqlLite) SetMain

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

func (*SqlLite) SetSerie

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

func (*SqlLite) Sync

func (s *SqlLite) Sync(command string, data et.Json) error

Jump to

Keyboard shortcuts

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