Documentation ¶
Index ¶
- Constants
- func ChangePassword(db *sql.DB, name, password string) error
- func Close() error
- func Connected(driver, host string, port int, dbname, user, password, application_name string) (*sql.DB, string, error)
- func CreateColumn(db *sql.DB, schema, table, name, kind, defaultValue string) error
- func CreateDatabase(db *sql.DB, name string) error
- func CreateIndex(db *sql.DB, schema, table, field string) error
- func CreateSchema(db *sql.DB, name string) error
- func CreateSerie(db *sql.DB, schema, tag string) error
- func CreateTrigger(db *sql.DB, schema, table, name, when, event, function string) error
- func CreateUser(db *sql.DB, name, password string) error
- func DBClose(idx int) error
- func DBQuery(db *sql.DB, sql string, args ...any) (et.Items, error)
- func DBQueryOne(db *sql.DB, sql string, args ...any) (et.Item, error)
- func DropColumn(db *sql.DB, schema, table, name string) error
- func DropDatabase(db *sql.DB, name string) error
- func DropIndex(db *sql.DB, schema, table, field string) error
- func DropSchema(db *sql.DB, name string) error
- func DropSerie(db *sql.DB, schema, name string) error
- func DropTable(db *sql.DB, schema, name string) error
- func DropTrigger(db *sql.DB, schema, table, name string) error
- func DropUser(db *sql.DB, name string) error
- func ExistColum(db *sql.DB, schema, table, name string) (bool, error)
- func ExistDatabase(db *sql.DB, name string) (bool, error)
- func ExistIndex(db *sql.DB, schema, table, field string) (bool, error)
- func ExistSchema(db *sql.DB, name string) (bool, error)
- func ExistSerie(db *sql.DB, schema, name string) (bool, error)
- func ExistTable(db *sql.DB, schema, name string) (bool, error)
- func ExistTrigger(db *sql.DB, schema, table, name string) (bool, error)
- func ExistUser(db *sql.DB, name string) (bool, error)
- func HttpQuery(sql string, args []any) (et.Items, error)
- func IDXQuery(index int, sql string, args ...any) (et.Items, error)
- func IDXQueryAtrib(index int, sql, atrib string, args ...any) (et.Items, error)
- func IDXQueryAtribOne(index int, sql, atrib string, args ...any) (et.Item, error)
- func IDXQueryCount(index int, sql string, args ...any) int
- func IDXQueryData(index int, sql string, args ...any) (et.Items, error)
- func IDXQueryDataOne(index int, sql string, args ...any) (et.Item, error)
- func IDXQueryOne(index int, sql string, args ...any) (et.Item, error)
- func QDDL(sql string, args ...any) (et.Items, error)
- func Query(sql string, args ...any) (et.Items, error)
- func QueryAtrib(sql, atrib string, args ...any) (et.Items, error)
- func QueryAtribOne(sql, atrib string, args ...any) (et.Item, error)
- func QueryCount(sql string, args ...any) int
- func QueryData(sql string, args ...any) (et.Items, error)
- func QueryDataOne(sql string, args ...any) (et.Item, error)
- func QueryOne(sql string, args ...any) (et.Item, error)
- func SQLDDL(sql string, args ...any) string
- func SQLParse(sql string, args ...any) string
- func SQLQuote(sql string) string
- func UpdateParamdb(path, atrib, value string) (et.Item, error)
- 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
Changue password
func CreateColumn ¶ added in v0.0.85
Create column
func CreateDatabase ¶ added in v0.0.85
Crate database
func CreateIndex ¶ added in v0.0.85
Create index
func CreateSerie ¶ added in v0.0.85
Create serie
func CreateTrigger ¶ added in v0.0.108
Create trigger
func CreateUser ¶ added in v0.0.85
Create user
func DropColumn ¶ added in v0.0.107
Drop column
func DropDatabase ¶ added in v0.0.107
Drop database
func DropTrigger ¶ added in v0.0.108
Drop trigger
func ExistColum ¶ added in v0.0.85
Exist column
func ExistDatabase ¶ added in v0.0.85
Exist database
func ExistIndex ¶ added in v0.0.85
Exist index
func ExistSchema ¶ added in v0.0.85
Exist schema
func ExistSerie ¶ added in v0.0.85
Exist serie
func ExistTable ¶ added in v0.0.85
Exist table
func ExistTrigger ¶ added in v0.0.108
Exist trigger
func IDXQueryAtrib ¶ added in v0.0.159
func IDXQueryAtribOne ¶ added in v0.0.159
func IDXQueryData ¶ added in v0.0.159
func IDXQueryDataOne ¶ added in v0.0.159
func IDXQueryOne ¶ added in v0.0.159
func QueryCount ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.