Documentation
¶
Index ¶
- func JsonQuote(val interface{}) interface{}
- func NewDriver() jdb.Driver
- type Postgres
- func (s *Postgres) ChangePassword(username, password, confirmation string) error
- func (s *Postgres) CleanCache() error
- func (s *Postgres) Command(command *jdb.Command) (et.Items, error)
- func (s *Postgres) Connect(params et.Json) error
- func (s *Postgres) Count(ql *jdb.Ql) (int, error)
- func (s *Postgres) CreateCore() error
- func (s *Postgres) CreateDatabase(name string) error
- func (s *Postgres) CreateModel(model *jdb.Model) error
- func (s *Postgres) CreateSchema(name string) error
- func (s *Postgres) CreateUser(username, password, confirmation string) error
- func (s *Postgres) CurrentSerie(tag string) int64
- func (s *Postgres) Data(sourceFiled, sql string, arg ...any) (et.Items, error)
- func (s *Postgres) DeleteCache(key string) error
- func (s *Postgres) DeleteFlow(id string) error
- func (s *Postgres) DeleteKey(key string) error
- func (s *Postgres) DeleteUser(username string) error
- func (s *Postgres) Disconnect() error
- func (s *Postgres) DropDatabase(name string) error
- func (s *Postgres) DropModel(model *jdb.Model) error
- func (s *Postgres) DropSchema(name string) error
- func (s *Postgres) Exec(sql string, arg ...any) error
- func (s *Postgres) ExecDDL(id, sql string, arg ...any) error
- func (s *Postgres) ExistDatabase(name string) (bool, error)
- func (s *Postgres) ExistSchema(name string) (bool, error)
- func (s *Postgres) Exists(ql *jdb.Ql) (bool, error)
- func (s *Postgres) FindCache(search string, page, rows int) (et.List, error)
- func (s *Postgres) FindFlows(search string, page, rows int) (et.List, error)
- func (s *Postgres) FindKeys(search string, page, rows int) (et.List, error)
- func (s *Postgres) GetCache(key string) (et.KeyValue, error)
- func (s *Postgres) GetFlow(id string) (jdb.Flow, error)
- func (s *Postgres) GetKey(key string) (et.KeyValue, error)
- func (s *Postgres) GetSerie(tag string) int64
- func (s *Postgres) GrantPrivileges(username, dbName string) error
- func (s *Postgres) LoadTable(model *jdb.Model) (bool, error)
- func (s *Postgres) Name() string
- func (s *Postgres) NextCode(tag, prefix string) string
- func (s *Postgres) One(sql string, arg ...any) (et.Item, error)
- func (s *Postgres) Query(sql string, arg ...any) (et.Items, error)
- func (s *Postgres) QueryRow(query string, dest ...any) (bool, error)
- func (s *Postgres) Select(ql *jdb.Ql) (et.Items, error)
- func (s *Postgres) SetCache(key string, value []byte, duration time.Duration) error
- func (s *Postgres) SetFlow(name string, value []byte) error
- func (s *Postgres) SetKey(key string, value []byte) error
- func (s *Postgres) SetMain(params et.Json) error
- func (s *Postgres) SetSerie(tag string, val int) int64
- func (s *Postgres) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) ChangePassword ¶
func (*Postgres) CleanCache ¶ added in v1.0.6
* * CleanCache - Clean cache * @return error *
func (*Postgres) CreateCore ¶ added in v1.0.3
func (*Postgres) CreateDatabase ¶
func (*Postgres) CreateModel ¶ added in v1.0.3
* * CreateModel * @param model *jdb.Model * @return error *
func (*Postgres) CreateSchema ¶ added in v1.0.3
func (*Postgres) CreateUser ¶
func (*Postgres) CurrentSerie ¶ added in v1.0.3
func (*Postgres) Data ¶ added in v1.0.5
* * Data * @param source, sql string, arg ...any * @return et.Items, error *
func (*Postgres) DeleteCache ¶ added in v1.0.6
* * DeleteCache - Delete key value * @params key string * @return error *
func (*Postgres) DeleteFlow ¶ added in v1.0.6
* * DeleteFlow * @params id string * @return error *
func (*Postgres) DeleteKey ¶ added in v1.0.5
* * DeleteKey - Delete key value * @params key string * @return error *
func (*Postgres) DeleteUser ¶
func (*Postgres) Disconnect ¶
func (*Postgres) DropDatabase ¶
func (*Postgres) DropSchema ¶
func (*Postgres) ExecDDL ¶ added in v1.0.5
* * ExecDDL * @param id, sql string, arg ...any * @return error *
func (*Postgres) ExistDatabase ¶ added in v0.1.20
func (*Postgres) FindCache ¶ added in v1.0.6
* * FindCache - Find key value * @params search string, page, rows int * @return et.List, error *
func (*Postgres) FindFlows ¶ added in v1.0.6
* * FindFlows - Find key value * @params search string * @params page int * @params rows int * @return et.List, error *
func (*Postgres) FindKeys ¶ added in v1.0.5
* * FindKeys - Find key value * @params search string * @params page int * @params rows int * @return et.List, error *
func (*Postgres) GetCache ¶ added in v1.0.6
* * GetCache - Get key value * @params key string * @return KeyValue, error *
func (*Postgres) GetFlow ¶ added in v1.0.6
* * GetFlow * @params id string * @return jdb.Flow, error *
func (*Postgres) GetKey ¶ added in v1.0.5
* * GetKey - Get key value * @params key string * @return KeyValue, error *
func (*Postgres) GrantPrivileges ¶
func (*Postgres) LoadTable ¶ added in v1.0.6
* * LoadTable * @param model *jdb.Model * @return error *
func (*Postgres) One ¶ added in v1.0.3
* * One * @param sql string, arg ...any * @return et.Item, error *
func (*Postgres) QueryRow ¶ added in v1.0.6
* * QueryRow * @param query string, dest ...any * @return error *
func (*Postgres) SetCache ¶ added in v1.0.6
* * SetCache - Set key value * @params key string, value []byte, duration time.Duration * @return error *
func (*Postgres) SetFlow ¶ added in v1.0.6
* * SetFlow * @params name string * @params value []byte * @return error *
Source Files
¶
- command.go
- core-cache.go
- core-ddl.go
- core-flows.go
- core-functions.go
- core-keyvalue.go
- core-model.go
- core-record.go
- core-recycling.go
- core-series.go
- core.go
- database.go
- ddl-index.go
- ddl-mutate.go
- ddl-table.go
- ddl-trigger.go
- driver.go
- main.go
- model.go
- quote.go
- schema.go
- sql-bulk.go
- sql-count.go
- sql-delete.go
- sql-exists.go
- sql-from.go
- sql-groupby.go
- sql-having.go
- sql-insert.go
- sql-join.go
- sql-limit.go
- sql-orderby.go
- sql-query.go
- sql-return.go
- sql-select.go
- sql-update.go
- sql-where.go
- user.go