Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyInstance ¶
func DestroyInstance() error
Types ¶
type DataContainerDatabaseColumnSpec ¶ added in v0.2.2
type DataContainerDatabaseColumnSpec struct { Name string `structs:"name"` Type string `structs:"type"` Comment string `structs:"comment"` PrimaryKey bool `structs:"primary_key"` Size int `structs:"size"` Unique bool `structs:"unique"` NotNull bool `structs:"not_null"` Index bool `structs:"index"` UniqueIndex string `structs:"unique_index"` Default any `structs:"default"` }
type DataContainerDatabaseSpec ¶ added in v0.2.1
type DataContainerDatabaseSpec struct { TableName string `structs:"table_name"` Columns []DataContainerDatabaseColumnSpec `structs:"columns"` }
func (*DataContainerDatabaseSpec) ToMap ¶ added in v0.2.1
func (spec *DataContainerDatabaseSpec) ToMap() map[string]any
type DataSourceDatabaseSpec ¶ added in v0.2.3
type DataSourceDatabaseSpec struct { Type string `structs:"type"` UserName string `structs:"user_name"` Password string `structs:"password"` Address string `structs:"address"` Port string `structs:"port"` Database string `structs:"database"` MaxConnections int `structs:"max_connections"` MaxIdleConnections int `structs:"max_idle_connections"` }
func (*DataSourceDatabaseSpec) ToMap ¶ added in v0.2.3
func (spec *DataSourceDatabaseSpec) ToMap() map[string]any
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *SDK
func (*SDK) ExecuteRawSql ¶
func (*SDK) Transaction ¶ added in v0.4.1
type Transaction ¶ added in v0.4.1
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) ExecuteRawSql ¶ added in v0.4.1
type TxFunc ¶ added in v0.4.1
type TxFunc func(tx *Transaction) error
Click to show internal directories.
Click to hide internal directories.