mysql

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (mysql *MySQL) Connect() error

Connect connects to the database_i_o_service by the given data source name (dsn) of the concrete database_i_o_service

func (*MySQL) DSN

func (mysql *MySQL) DSN() string

DSN creates the DSN String to connect to this 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

func (mysql *MySQL) GetDriverImportLibrary() string

GetDriverImportLibrary returns the golang sql Driver specific fot the MySQL database_i_o_service

func (*MySQL) GetFloatDatatypes

func (mysql *MySQL) GetFloatDatatypes() []string

GetFloatDatatypes returns the float datatypes for the MySQL database_i_o_service

func (*MySQL) GetIntegerDatatypes

func (mysql *MySQL) GetIntegerDatatypes() []string

GetIntegerDatatypes returns the integer datatypes for the MySQL database_i_o_service

func (*MySQL) GetStringDatatypes

func (mysql *MySQL) GetStringDatatypes() []string

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

func (mysql *MySQL) GetTemporalDatatypes() []string

GetTemporalDatatypes returns the temporal datatypes for the MySQL database_i_o_service

func (*MySQL) GetTemporalDriverDataType

func (mysql *MySQL) GetTemporalDriverDataType() string

GetTemporalDriverDataType returns the time data type specific for the MySQL database_i_o_service

func (*MySQL) GetTextDatatypes

func (mysql *MySQL) GetTextDatatypes() []string

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

func (mysql *MySQL) PrepareGetColumnsOfTableStmt() (err error)

PrepareGetColumnsOfTableStmt prepares the statement for retrieving the columns of a specific table for a given database_i_o_service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL