Documentation
¶
Index ¶
- type PostgresStorage
- type PostgresTable
- func (pg *PostgresTable) Connect() (err error)
- func (pg *PostgresTable) GetColumnsOfTable(table *db.Table) (err error)
- func (pg *PostgresTable) GetFloatDatatypes() []string
- func (pg *PostgresTable) GetIntegerDatatypes() []string
- func (pg *PostgresTable) GetStringDatatypes() []string
- func (pg *PostgresTable) GetTables() (tables []*db.Table, err error)
- func (pg *PostgresTable) GetTemporalDatatypes() []string
- func (pg *PostgresTable) GetTextDatatypes() []string
- func (pg *PostgresTable) IsAutoIncrement(column db.Column) bool
- func (pg *PostgresTable) IsFloat(column db.Column) bool
- func (pg *PostgresTable) IsInteger(column db.Column) bool
- func (pg *PostgresTable) IsNullable(column db.Column) bool
- func (pg *PostgresTable) IsPrimaryKey(column db.Column) bool
- func (pg *PostgresTable) IsString(column db.Column) bool
- func (pg *PostgresTable) IsTemporal(column db.Column) bool
- func (pg *PostgresTable) IsText(column db.Column) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStorage ¶
type PostgresTable ¶
type PostgresTable struct {
// contains filtered or unexported fields
}
func NewPostgresTable ¶
func NewPostgresTable(conn *db.Conn, dbname string) (*PostgresTable, error)
func (*PostgresTable) Connect ¶
func (pg *PostgresTable) Connect() (err error)
func (*PostgresTable) GetColumnsOfTable ¶
func (pg *PostgresTable) GetColumnsOfTable(table *db.Table) (err error)
get table columns
func (*PostgresTable) GetFloatDatatypes ¶
func (pg *PostgresTable) GetFloatDatatypes() []string
func (*PostgresTable) GetIntegerDatatypes ¶
func (pg *PostgresTable) GetIntegerDatatypes() []string
func (*PostgresTable) GetStringDatatypes ¶
func (pg *PostgresTable) GetStringDatatypes() []string
func (*PostgresTable) GetTables ¶
func (pg *PostgresTable) GetTables() (tables []*db.Table, err error)
GetTables gets all tables for a given schema by name.
func (*PostgresTable) GetTemporalDatatypes ¶
func (pg *PostgresTable) GetTemporalDatatypes() []string
func (*PostgresTable) GetTextDatatypes ¶
func (pg *PostgresTable) GetTextDatatypes() []string
func (*PostgresTable) IsAutoIncrement ¶
func (pg *PostgresTable) IsAutoIncrement(column db.Column) bool
func (*PostgresTable) IsNullable ¶
func (pg *PostgresTable) IsNullable(column db.Column) bool
func (*PostgresTable) IsPrimaryKey ¶
func (pg *PostgresTable) IsPrimaryKey(column db.Column) bool
func (*PostgresTable) IsTemporal ¶
func (pg *PostgresTable) IsTemporal(column db.Column) bool
Click to show internal directories.
Click to hide internal directories.