Documentation
¶
Index ¶
- Constants
- 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) CreateDatabase(name string) error
- func (s *Postgres) CreateUser(username, password, confirmation 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) ExistSchema(name string) (bool, error)
- func (s *Postgres) Exists(ql *jdb.Ql) (bool, error)
- func (s *Postgres) GrantPrivileges(username, database string) error
- func (s *Postgres) LoadModel(model *jdb.Model) error
- func (s *Postgres) LoadSchema(name string) error
- func (s *Postgres) MutateModel(model *jdb.Model) error
- func (s *Postgres) Name() string
- func (s *Postgres) Query(sql string, arg ...any) (et.Items, error)
- func (s *Postgres) QueryTx(tx *jdb.Tx, sql string, arg ...any) (et.Items, error)
- func (s *Postgres) Select(ql *jdb.Ql) (et.Items, error)
- func (s *Postgres) SetMain(params et.Json) error
- func (s *Postgres) Sync(command string, data et.Json) error
- func (s *Postgres) Version() int
Constants ¶
View Source
const ( MSG_FUNCION_NOT_FOUND = "Function not found" MSG_COMMAND_NOT_FOUND = "Command not found" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) ChangePassword ¶
func (*Postgres) CreateDatabase ¶
* * CreateDatabase * @param name string * @return error *
func (*Postgres) CreateUser ¶
func (*Postgres) DeleteUser ¶
func (*Postgres) Disconnect ¶
* * Disconnect * @return error *
func (*Postgres) DropDatabase ¶
* * DropDatabase * @param name string * @return error *
func (*Postgres) DropSchema ¶
* * DropSchema * @param name string * @return error *
func (*Postgres) ExistSchema ¶
* * ExistSchema * @param name string * @return bool, error *
func (*Postgres) GrantPrivileges ¶
func (*Postgres) LoadSchema ¶
* * LoadSchema * @param name string * @return error *
func (*Postgres) MutateModel ¶
* * MutateModel * @param model *jdb.Model * @return error *
func (*Postgres) QueryTx ¶
* * QueryTx * @param tx *jdb.Tx, sql string, arg ...any * @return et.Items, error *
Source Files
¶
- command.go
- database.go
- ddl-index.go
- ddl-table.go
- driver.go
- main.go
- model.go
- msg.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
Click to show internal directories.
Click to hide internal directories.