Documentation ¶
Index ¶
- type ColumnInfo
- type Config
- type DB
- func (db *DB) Close() error
- func (db *DB) Exec(query string) (sql.Result, error)
- func (db *DB) ExplainWithAnalyze(query string) ([]string, error)
- func (db *DB) GetIndexes(database string, tables []string) ([]*IndexInfo, error)
- func (db *DB) GetTableColumns(schema string, tables []string) ([]*ColumnInfo, error)
- type IndexInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type Config ¶
type Config struct { DBName string // contains filtered or unexported fields }
func NewConfigFromEnv ¶
func (*Config) GetKVConnectionString ¶
GetKVConnectionString returns libpq's connection string c.f) https://pkg.go.dev/github.com/lib/pq#hdr-Connection_String_Parameters
func (*Config) GetSearchPathOrPublic ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func OpenPostgresDB ¶
func (*DB) GetIndexes ¶
func (*DB) GetTableColumns ¶
func (db *DB) GetTableColumns(schema string, tables []string) ([]*ColumnInfo, error)
Click to show internal directories.
Click to hide internal directories.