mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +00:00
Merge branch 'master' into feature/cassandra
This commit is contained in:
31
packages/types/dbinfo.d.ts
vendored
31
packages/types/dbinfo.d.ts
vendored
@@ -189,3 +189,34 @@ export interface DatabaseInfoObjects {
|
||||
export interface DatabaseInfo extends DatabaseInfoObjects {
|
||||
engine?: string;
|
||||
}
|
||||
|
||||
export interface ColumnReferenceTiny {
|
||||
n: string; // name
|
||||
r?: string; // ref name
|
||||
}
|
||||
|
||||
export interface PrimaryKeyInfoTiny {
|
||||
c: ColumnReferenceTiny[]; // columns
|
||||
}
|
||||
|
||||
export interface ForeignKeyInfoTiny {
|
||||
c: ColumnReferenceTiny[]; // columns
|
||||
r: string; // reference table name
|
||||
}
|
||||
|
||||
export interface ColumnInfoTiny {
|
||||
n: string; // name
|
||||
t: string; // type
|
||||
}
|
||||
|
||||
export interface TableInfoTiny {
|
||||
n: string; //name
|
||||
o: string; // comment
|
||||
c: ColumnInfoTiny[]; // columns
|
||||
p?: PrimaryKeyInfoTiny; // primary key
|
||||
f?: ForeignKeyInfoTiny[]; // foreign keys
|
||||
}
|
||||
|
||||
export interface DatabaseInfoTiny {
|
||||
t: TableInfoTiny[]; // tables
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user