Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDriver ¶
type PostgresDriver struct { Host string Port int Username string Password string DatabaseName string }
PostgresDriver is a driver for Postgres databases.
func (*PostgresDriver) GetColumns ¶
func (d *PostgresDriver) GetColumns(schemaName, tableName string) ([]*schema.Column, error)
GetColumns returns the columns for a MySQL table.
func (*PostgresDriver) GetSchemas ¶
func (d *PostgresDriver) GetSchemas() ([]*schema.Schema, error)
GetSchemas returns the schemas for a Postgres database.
func (*PostgresDriver) GetTables ¶
func (d *PostgresDriver) GetTables(schemaName string) ([]*schema.Table, error)
GetTables returns the tables for a MySQL schema.
func (*PostgresDriver) TestConnection ¶
func (d *PostgresDriver) TestConnection() error
TestConnection tests the connection to a Postgres database.
Click to show internal directories.
Click to hide internal directories.