Documentation ¶
Index ¶
- type MySQL
- func (mysql *MySQL) Connect() error
- func (mysql *MySQL) DSN() string
- func (mysql *MySQL) GetColumnsOfTable(table *object_model2.Table) (err error)
- func (mysql *MySQL) GetDriverImportLibrary() string
- func (mysql *MySQL) GetFloatDatatypes() []string
- func (mysql *MySQL) GetIntegerDatatypes() []string
- func (mysql *MySQL) GetStringDatatypes() []string
- func (mysql *MySQL) GetTables() (tables []*object_model2.Table, err error)
- func (mysql *MySQL) GetTemporalDatatypes() []string
- func (mysql *MySQL) GetTemporalDriverDataType() string
- func (mysql *MySQL) GetTextDatatypes() []string
- func (mysql *MySQL) IsAutoIncrement(column object_model2.Column) bool
- func (mysql *MySQL) IsFloat(column object_model2.Column) bool
- func (mysql *MySQL) IsInteger(column object_model2.Column) bool
- func (mysql *MySQL) IsPrimaryKey(column object_model2.Column) bool
- func (mysql *MySQL) IsString(column object_model2.Column) bool
- func (mysql *MySQL) IsTemporal(column object_model2.Column) bool
- func (mysql *MySQL) IsText(column object_model2.Column) bool
- func (mysql *MySQL) PrepareGetColumnsOfTableStmt() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct {
*contract.GeneralDatabases
}
MySQL implemenmts the Database interface with help of generalDatabase
func NewMySQL ¶
func NewMySQL(s *configurations.Settings) *MySQL
NewMySQL creates a new MySQL database_i_o_service
func (*MySQL) Connect ¶
Connect connects to the database_i_o_service by the given data source name (dsn) of the concrete database_i_o_service
func (*MySQL) GetColumnsOfTable ¶
func (mysql *MySQL) GetColumnsOfTable(table *object_model2.Table) (err error)
GetColumnsOfTable executes the statement for retrieving the columns of a specific table for a given database_i_o_service
func (*MySQL) GetDriverImportLibrary ¶
GetDriverImportLibrary returns the golang sql Driver specific fot the MySQL database_i_o_service
func (*MySQL) GetFloatDatatypes ¶
GetFloatDatatypes returns the float datatypes for the MySQL database_i_o_service
func (*MySQL) GetIntegerDatatypes ¶
GetIntegerDatatypes returns the integer datatypes for the MySQL database_i_o_service
func (*MySQL) GetStringDatatypes ¶
GetStringDatatypes returns the string datatypes for the MySQL database_i_o_service
func (*MySQL) GetTables ¶
func (mysql *MySQL) GetTables() (tables []*object_model2.Table, err error)
GetTables gets all tables for a given database_i_o_service by name
func (*MySQL) GetTemporalDatatypes ¶
GetTemporalDatatypes returns the temporal datatypes for the MySQL database_i_o_service
func (*MySQL) GetTemporalDriverDataType ¶
GetTemporalDriverDataType returns the time data type specific for the MySQL database_i_o_service
func (*MySQL) GetTextDatatypes ¶
GetTextDatatypes returns the text datatypes for the MySQL database_i_o_service
func (*MySQL) IsAutoIncrement ¶
func (mysql *MySQL) IsAutoIncrement(column object_model2.Column) bool
IsAutoIncrement checks if column is a auto_increment column
func (*MySQL) IsFloat ¶
func (mysql *MySQL) IsFloat(column object_model2.Column) bool
IsFloat returns true if colum is of type float for the MySQL database_i_o_service
func (*MySQL) IsInteger ¶
func (mysql *MySQL) IsInteger(column object_model2.Column) bool
IsInteger returns true if colum is of type integer for the MySQL database_i_o_service
func (*MySQL) IsPrimaryKey ¶
func (mysql *MySQL) IsPrimaryKey(column object_model2.Column) bool
IsPrimaryKey checks if column belongs to primary key
func (*MySQL) IsString ¶
func (mysql *MySQL) IsString(column object_model2.Column) bool
IsString returns true if colum is of type string for the MySQL database_i_o_service
func (*MySQL) IsTemporal ¶
func (mysql *MySQL) IsTemporal(column object_model2.Column) bool
IsTemporal returns true if colum is of type temporal for the MySQL database_i_o_service
func (*MySQL) IsText ¶
func (mysql *MySQL) IsText(column object_model2.Column) bool
IsText returns true if colum is of type text for the MySQL database_i_o_service
func (*MySQL) PrepareGetColumnsOfTableStmt ¶
PrepareGetColumnsOfTableStmt prepares the statement for retrieving the columns of a specific table for a given database_i_o_service