Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
ColumnName string `db:"COLUMN_NAME"`
IsNullable string `db:"IS_NULLABLE"`
ColumnDefault string `db:"COLUMN_DEFAULT"`
DataType string `db:"DATA_TYPE"`
}
Column struct
type Column struct {
Column string `db:"CL"`
ColumnName string `db:"CN"`
DataType string `db:"DT"`
}
type Database ¶
type Database struct {
Name string `json:"name,omitempty"`
Hostname string `json:"hostname,omitempty"`
Port int `json:"port,omitempty"`
Driver string `json:"driver,omitempty"`
Database string `json:"database,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
URI string `json:"uri,omitempty"`
*sqlx.DB
}
Database struct contains sql pointer
func (*Database) ExecProcedure ¶
ExecProcedure executes stored procedure
func (*Database) GetRoutine ¶
GetRoutine gets procedure definition
func (*Database) GetSchemas ¶
GetSchemas returns schema list
func (*Database) GetTableIndexSchema ¶
type Index ¶
type Index struct {
Schema string `db:"schemaname"`
Table string `db:"tablename"`
Name string `db:"indexname"`
Columns string `db:"indexcolumns"`
Definition string `db:"indexdef"`
}
Index list of Indexes
type Routine ¶
type Routine struct {
Name string `db:"ROUTINE_NAME"`
Type string `db:"ROUTINE_TYPE"`
Definition string `db:"ROUTINE_DEFINITION"`
DataType string `db:"DATA_TYPE"`
ExternalLanguage string `db:"EXTERNAL_LANGUAGE"`
}
Routine list of routines (procedures, functions)
type RoutineList ¶
type RoutineList struct {
Name string `db:"ROUTINE_NAME"`
}
Click to show internal directories.
Click to hide internal directories.