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) 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) 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) ExistSchema(name string) (bool, error)
- func (s *Postgres) Exists(ql *jdb.Ql) (bool, error)
- func (s *Postgres) GetSerie(tag string) int64
- func (s *Postgres) GrantPrivileges(username, database 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) SaveModel(model *jdb.Model) error
- func (s *Postgres) Select(ql *jdb.Ql) (et.Items, 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) CreateCore ¶ added in v1.0.3
func (*Postgres) CreateDatabase ¶
* * CreateDatabase * @param name string * @return error *
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
* * CurrentSerie * @param tag string * @return int64
func (*Postgres) Data ¶ added in v1.0.5
* * Data * @param source, sql string, arg ...any * @return et.Items, error *
func (*Postgres) DeleteUser ¶
func (*Postgres) Disconnect ¶
* * Disconnect * @return error *
func (*Postgres) DropDatabase ¶
* * DropDatabase * @param name string * @return error *
func (*Postgres) DropSchema ¶
func (*Postgres) ExecDDL ¶ added in v1.0.5
* * ExecDDL * @param id, sql string, arg ...any * @return error *
func (*Postgres) GrantPrivileges ¶
func (*Postgres) LoadTable ¶ added in v1.0.6
* * LoadTable * @param model *jdb.Model * @return error *
func (*Postgres) NextCode ¶ added in v1.0.3
* * NextCode * @param tag string, prefix string * @return string
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) SaveModel ¶ added in v1.0.7
* * SaveModel * @param model *jdb.Model * @return error *
Source Files
¶
- command.go
- core-ddl.go
- core-functions.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
- 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
- utility.go