postgres

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonQuote

func JsonQuote(val interface{}) interface{}

func NewDriver

func NewDriver() jdb.Driver

Types

type Postgres

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

func (*Postgres) ChangePassword

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

func (*Postgres) Command

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

func (*Postgres) Connect

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

func (*Postgres) Count

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

func (*Postgres) CreateCore added in v1.0.3

func (s *Postgres) CreateCore() error

func (*Postgres) CreateDatabase

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

func (*Postgres) CreateSchema added in v1.0.3

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

func (*Postgres) CreateUser

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

func (*Postgres) CurrentSerie added in v1.0.3

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

func (*Postgres) Data added in v1.0.5

func (s *Postgres) Data(source, sql string, params ...any) (et.Items, error)

func (*Postgres) DeleteKey added in v1.0.5

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

* * DeleteKey - Delete key value * @params key string * @return error *

func (*Postgres) DeleteUser

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

func (*Postgres) Disconnect

func (s *Postgres) Disconnect() error

func (*Postgres) DropDatabase

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

func (*Postgres) DropModel

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

* * DropModel * @param model *jdb.Model * @return error *

func (*Postgres) DropSchema

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

func (*Postgres) Exec added in v1.0.3

func (s *Postgres) Exec(sql string, params ...any) error

func (*Postgres) ExecDDL added in v1.0.5

func (s *Postgres) ExecDDL(id, sql string, params ...any) error

func (*Postgres) ExistDatabase added in v0.1.20

func (s *Postgres) ExistDatabase(name string) (bool, error)

func (*Postgres) ExistSchema

func (s *Postgres) ExistSchema(name string) (bool, error)

func (*Postgres) FindKeys added in v1.0.5

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

* * FindKeys - Find key value * @params search string * @params page int * @params rows int * @return et.List, error *

func (*Postgres) GetKey added in v1.0.5

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

* * GetKey - Get key value * @params key string * @return KeyValue, error *

func (*Postgres) GetSerie added in v1.0.3

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

func (*Postgres) GrantPrivileges

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

func (*Postgres) LoadByTable added in v1.0.5

func (s *Postgres) LoadByTable(model *jdb.Model) error

* * LoadByTable * @param model *jdb.Model * @return error *

func (*Postgres) LoadModel

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

func (*Postgres) Name

func (s *Postgres) Name() string

func (*Postgres) NextCode added in v1.0.3

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

func (*Postgres) Query

func (s *Postgres) Query(sql string, params ...any) (et.Items, error)

func (*Postgres) Select

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

func (*Postgres) SetKey added in v1.0.5

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

* * SetKey - Set key value * @params key string * @params value []byte * @return error *

func (*Postgres) SetMain

func (s *Postgres) SetMain(params et.Json) error

func (*Postgres) SetSerie added in v1.0.3

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

func (*Postgres) Version

func (s *Postgres) Version() int

Jump to

Keyboard shortcuts

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