Documentation
¶
Index ¶
- Constants
- 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) (*sql.DB, error)
- func (s *Postgres) Count(ql *jdb.Ql) (int, 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) 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) MutateModel(model *jdb.Model) error
- func (s *Postgres) Name() string
- func (s *Postgres) Select(ql *jdb.Ql) (et.Items, error)
Constants ¶
View Source
const ( MSG_FUNCION_NOT_FOUND = "Function not found" MSG_COMMAND_NOT_FOUND = "Command not found" MSG_VERSION_NOT_SUPPORTED = "PostgreSQL version:%s json_object is not supported" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) ChangePassword ¶
* * ChangePassword * @param username, password, confirmation string * @return error *
func (*Postgres) CreateUser ¶
* * CreateUser * @param username, password, confirmation string * @return error *
func (*Postgres) DeleteUser ¶
* * DeleteUser * @param username string * @return error *
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) GrantPrivileges ¶
* * GrantPrivileges * @param username, database string * @return error *
func (*Postgres) MutateModel ¶
* * MutateModel * @param model *jdb.Model * @return error *
Click to show internal directories.
Click to hide internal directories.