Versions in this module Expand all Collapse all v2 v2.10.1 Oct 12, 2024 v2.10.0 Oct 12, 2024 Changes in this version + type Column struct + CharacterMaximumLength sql.NullInt64 + ColumnKey string + ConstraintName sql.NullString + ConstraintType sql.NullString + DataType string + DefaultValue sql.NullString + Extra string + IsNullable string + Name string + NumericPrecision sql.NullInt64 + OrdinalPosition int + type Database interface + Close func() (err error) + Connect func() (err error) + DSN func() string + GetColumnsOfTable func(table *Table) (err error) + GetFloatDatatypes func() []string + GetIntegerDatatypes func() []string + GetStringDatatypes func() []string + GetTables func() (tables []*Table, err error) + GetTemporalDatatypes func() []string + GetTextDatatypes func() []string + IsAutoIncrement func(column Column) bool + IsFloat func(column Column) bool + IsInteger func(column Column) bool + IsNullable func(column Column) bool + IsPrimaryKey func(column Column) bool + IsString func(column Column) bool + IsTemporal func(column Column) bool + IsText func(column Column) bool + PrepareGetColumnsOfTableStmt func() (err error) + func New(s *settings.Settings) Database + type GeneralDatabase struct + GetColumnsOfTableStmt *sqlx.Stmt + func (gdb *GeneralDatabase) Close() error + func (gdb *GeneralDatabase) Connect(dsn string) (err error) + func (gdb *GeneralDatabase) IsNullable(column Column) bool + type MySQL struct + func NewMySQL(s *settings.Settings) *MySQL + func (mysql *MySQL) Connect() error + func (mysql *MySQL) DSN() string + func (mysql *MySQL) GetColumnsOfTable(table *Table) (err error) + func (mysql *MySQL) GetFloatDatatypes() []string + func (mysql *MySQL) GetIntegerDatatypes() []string + func (mysql *MySQL) GetStringDatatypes() []string + func (mysql *MySQL) GetTables() (tables []*Table, err error) + func (mysql *MySQL) GetTemporalDatatypes() []string + func (mysql *MySQL) GetTextDatatypes() []string + func (mysql *MySQL) IsAutoIncrement(column Column) bool + func (mysql *MySQL) IsFloat(column Column) bool + func (mysql *MySQL) IsInteger(column Column) bool + func (mysql *MySQL) IsPrimaryKey(column Column) bool + func (mysql *MySQL) IsString(column Column) bool + func (mysql *MySQL) IsTemporal(column Column) bool + func (mysql *MySQL) IsText(column Column) bool + func (mysql *MySQL) PrepareGetColumnsOfTableStmt() (err error) + type Postgresql struct + func NewPostgresql(s *settings.Settings) *Postgresql + func (pg *Postgresql) Connect() error + func (pg *Postgresql) DSN() string + func (pg *Postgresql) GetColumnsOfTable(table *Table) (err error) + func (pg *Postgresql) GetFloatDatatypes() []string + func (pg *Postgresql) GetIntegerDatatypes() []string + func (pg *Postgresql) GetStringDatatypes() []string + func (pg *Postgresql) GetTables() (tables []*Table, err error) + func (pg *Postgresql) GetTemporalDatatypes() []string + func (pg *Postgresql) GetTextDatatypes() []string + func (pg *Postgresql) IsAutoIncrement(column Column) bool + func (pg *Postgresql) IsFloat(column Column) bool + func (pg *Postgresql) IsInteger(column Column) bool + func (pg *Postgresql) IsPrimaryKey(column Column) bool + func (pg *Postgresql) IsString(column Column) bool + func (pg *Postgresql) IsTemporal(column Column) bool + func (pg *Postgresql) IsText(column Column) bool + func (pg *Postgresql) PrepareGetColumnsOfTableStmt() (err error) + type SQLite struct + func NewSQLite(s *settings.Settings) *SQLite + func (s *SQLite) Connect() (err error) + func (s *SQLite) DSN() string + func (s *SQLite) GetColumnsOfTable(table *Table) (err error) + func (s *SQLite) GetFloatDatatypes() []string + func (s *SQLite) GetIntegerDatatypes() []string + func (s *SQLite) GetStringDatatypes() []string + func (s *SQLite) GetTables() (tables []*Table, err error) + func (s *SQLite) GetTemporalDatatypes() []string + func (s *SQLite) GetTextDatatypes() []string + func (s *SQLite) IsAutoIncrement(column Column) bool + func (s *SQLite) IsFloat(column Column) bool + func (s *SQLite) IsInteger(column Column) bool + func (s *SQLite) IsPrimaryKey(column Column) bool + func (s *SQLite) IsString(column Column) bool + func (s *SQLite) IsTemporal(_ Column) bool + func (s *SQLite) IsText(column Column) bool + func (s *SQLite) PrepareGetColumnsOfTableStmt() (err error) + type Table struct + Columns []Column + Name string