empty table
This commit is contained in:
parent
4e17758e15
commit
eb6e33cb2e
2
pg.go
2
pg.go
@ -78,7 +78,7 @@ func (db *Db) QueryAssociativeArray(query string) (Rows, error) {
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
var results Rows
|
||||
results := Rows{}
|
||||
cols, err := rows.Columns()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
56
schema.json
56
schema.json
@ -1,55 +1 @@
|
||||
[
|
||||
{
|
||||
"name": "dbentity",
|
||||
"columns": {
|
||||
"description": "text",
|
||||
"id": "integer",
|
||||
"parent_id": "bigint",
|
||||
"type": "varchar(255)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dbrole",
|
||||
"columns": {
|
||||
"description": "text",
|
||||
"id": "integer",
|
||||
"name": "varchar"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dbtableaccess",
|
||||
"columns": {
|
||||
"dbrole_id": "integer",
|
||||
"id": "integer",
|
||||
"tableaccess": "varchar(255)",
|
||||
"userrolerestrictions": "varchar(255)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dbuser",
|
||||
"columns": {
|
||||
"id": "integer",
|
||||
"login": "varchar(255)|comment",
|
||||
"password": "varchar(255)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "dbuserrole",
|
||||
"columns": {
|
||||
"dbentity_id": "integer",
|
||||
"dbrole_id": "integer",
|
||||
"dbuser_id": "integer",
|
||||
"enddate": "timestamp without time zone",
|
||||
"id": "integer",
|
||||
"startdate": "timestamp without time zone"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "testtype",
|
||||
"columns": {
|
||||
"detail": "varchar(255)",
|
||||
"id": "integer",
|
||||
"name": "varchar(255)"
|
||||
}
|
||||
}
|
||||
]
|
||||
null
|
51
schema.puml
51
schema.puml
@ -1,58 +1,7 @@
|
||||
@startuml
|
||||
|
||||
|
||||
entity dbentity {
|
||||
description : text
|
||||
id : integer
|
||||
parent_id : bigint
|
||||
type : varchar(255)
|
||||
}
|
||||
|
||||
entity dbrole {
|
||||
description : text
|
||||
id : integer
|
||||
name : varchar
|
||||
}
|
||||
|
||||
entity dbtableaccess {
|
||||
dbrole_id : integer
|
||||
id : integer
|
||||
tableaccess : varchar(255)
|
||||
userrolerestrictions : varchar(255)
|
||||
}
|
||||
|
||||
entity dbuser {
|
||||
id : integer
|
||||
login : varchar(255)|comment
|
||||
password : varchar(255)
|
||||
}
|
||||
|
||||
entity dbuserrole {
|
||||
dbentity_id : integer
|
||||
dbrole_id : integer
|
||||
dbuser_id : integer
|
||||
enddate : timestamp without time zone
|
||||
id : integer
|
||||
startdate : timestamp without time zone
|
||||
}
|
||||
|
||||
entity testtype {
|
||||
detail : varchar(255)
|
||||
id : integer
|
||||
name : varchar(255)
|
||||
}
|
||||
|
||||
|
||||
|
||||
dbentity ||..|| parent
|
||||
|
||||
dbtableaccess ||..|| dbrole
|
||||
|
||||
dbuserrole ||..|| dbuser
|
||||
|
||||
dbuserrole ||..|| dbentity
|
||||
|
||||
dbuserrole ||..|| dbrole
|
||||
|
||||
|
||||
@enduml
|
||||
|
Loading…
Reference in New Issue
Block a user