Documentation ¶
Index ¶
- Constants
- func ChangePassword(db int, name, password string) (bool, error)
- func Close() error
- func CloseListen(host, channel string)
- func Connected(driver, host string, port int, dbname, user, password string) (int, error)
- func CreateColumn(db int, schema, table, name, kind, defaultValue string) (bool, error)
- func CreateDatabase(db int, name string) (bool, error)
- func CreateIndex(db int, schema, table, field string) (bool, error)
- func CreateSchema(db int, name string) (bool, error)
- func CreateSerie(db int, schema, tag string) (bool, error)
- func CreateUser(db int, name, password string) (bool, error)
- func DBClose(idx int) error
- func DBQDDL(db int, sql string, args ...any) (e.Items, error)
- func DBQuery(db int, sql string, args ...any) (e.Items, error)
- func DBQueryAtrib(db int, sql, atrib string, args ...any) (e.Items, error)
- func DBQueryAtribOne(db int, sql, atrib string, args ...any) (e.Item, error)
- func DBQueryCount(db int, sql string, args ...any) int
- func DBQueryData(db int, sql string, args ...any) (e.Items, error)
- func DBQueryDataOne(db int, sql string, args ...any) (e.Item, error)
- func DBQueryOne(db int, sql string, args ...any) (e.Item, error)
- func ExistColum(db int, schema, table, name string) (bool, error)
- func ExistDatabase(db int, name string) (bool, error)
- func ExistIndex(db int, schema, table, field string) (bool, error)
- func ExistSchema(db int, name string) (bool, error)
- func ExistSerie(db int, schema, name string) (bool, error)
- func ExistTable(db int, schema, name string) (bool, error)
- func ExistUser(db int, name string) (bool, error)
- func HttpQuery(sql string, args []any) (e.Items, error)
- func IsCloseListen(host, channel string) bool
- func Listen(nodo, url, channel string, listen func(res e.Json))
- func ListenClose(listen *pq.Listener) error
- func ListenEvent(nodo, url, channel string, listener *pq.Listener, listen func(res e.Json))
- func QDDL(sql string, args ...any) (e.Items, error)
- func Query(sql string, args ...any) (e.Items, error)
- func QueryAtrib(sql, atrib string, args ...any) (e.Items, error)
- func QueryAtribOne(sql, atrib string, args ...any) (e.Item, error)
- func QueryCount(sql string, args ...any) int
- func QueryData(sql string, args ...any) (e.Items, error)
- func QueryDataOne(sql string, args ...any) (e.Item, error)
- func QueryOne(sql string, args ...any) (e.Item, error)
- func SQLDDL(sql string, args ...any) string
- func SQLParse(sql string, args ...any) string
- func SQLQuote(sql string) string
- type Conn
- type Db
Constants ¶
View Source
const Firebird = "firebird"
View Source
const Mysql = "mysql"
View Source
const Postgres = "postgres"
View Source
const Sqlserver = "sqlserver"
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶ added in v0.0.85
func CloseListen ¶ added in v0.0.34
func CloseListen(host, channel string)
func CreateColumn ¶ added in v0.0.85
func CreateIndex ¶ added in v0.0.85
func DBQueryAtrib ¶
* * *
func ExistColum ¶ added in v0.0.85
func ExistIndex ¶ added in v0.0.85
func IsCloseListen ¶ added in v0.0.34
func ListenClose ¶
func ListenEvent ¶
func QueryCount ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.