Versions in this module Expand all Collapse all v1 v1.0.7 Dec 5, 2022 v1.0.6 Dec 3, 2022 Changes in this version + func Query(ctx context.Context, db *sql.DB, querySQL string) ([]string, []map[string]string, error) + type Postgres struct + Ctx context.Context + GormDB *gorm.DB + PGDB *sql.DB + func NewPostgresDB(ctx context.Context, mysqlDB *sql.DB, GormDB *gorm.DB) *Postgres + func (p *Postgres) GetSchemaMeta() (schemaMeta []string) + func (p *Postgres) GetTableColumnMeta(schemaName string, tableName string) (colMeta []map[string]string) + func (p *Postgres) GetTableForeignKey(schemaName string, tableName string) (fkList []map[string]string) + func (p *Postgres) GetTableIndexMeta(schemaName string, tableName string) (idxMeta []map[string]string) + func (p *Postgres) GetTableMeta(schemaName string) (tableMeta []map[string]string) + func (p *Postgres) GetTablePrimaryKey(schemaName string, tableName string) (pkList []map[string]string) + func (p *Postgres) GetTableUniqueKey(schemaName string, tableName string) (ukList []map[string]string) + func (p *Postgres) GetViewMeta(schemaName, viewName string) (viewMeta []map[string]string) + func (p *Postgres) QuerySQL(querySQL string) (cols []string, res []map[string]string)