schema tbale list label update
This commit is contained in:
parent
cac8a47bbe
commit
f406c17ea9
2
pg.go
2
pg.go
@ -136,7 +136,7 @@ func (t *TableInfo) GetSchema() (*TableInfo, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (db *Db) ListTables() (Rows, error) {
|
func (db *Db) ListTables() (Rows, error) {
|
||||||
return db.QueryAssociativeArray("SELECT table_name :: varchar FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name;")
|
return db.QueryAssociativeArray("SELECT table_name :: varchar as name FROM information_schema.tables WHERE table_schema = 'public' ORDER BY table_name;")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *Db) CreateTable(t TableInfo) error {
|
func (db *Db) CreateTable(t TableInfo) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user