empty table

This commit is contained in:
noemie 2023-01-23 11:29:46 +01:00
parent 4e17758e15
commit eb6e33cb2e
4 changed files with 2 additions and 107 deletions

2
pg.go
View File

@ -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)

View File

@ -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

View File

@ -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

BIN
sqldb Normal file

Binary file not shown.