Skip to content

Commit 4f047d8

Browse files
committed
chore add types
1 parent 5297f9c commit 4f047d8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

types/parameters.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as schemaTypes from '../src/proto/schema_pb';
2-
import { USER_PERMISSION, USER_ACTION } from './user'
2+
import { USER_PERMISSION, } from './user'
33
import * as interfaces from '../src/interfaces';
44

5-
export type SQLColumnValue = {
5+
export type SQLColumnDescription = {
66
name: string,
77
type: string,
88
nullable: boolean,
@@ -11,6 +11,17 @@ export type SQLColumnValue = {
1111
unique: boolean,
1212
};
1313

14+
export type SQLTableDescription = {
15+
name: string,
16+
};
17+
18+
interface IValue {
19+
prop: string
20+
}
21+
export interface SQLRowDescription {
22+
[name: string]: IValue;
23+
}
24+
1425
export type SQLValue = null | string | number | Uint8Array | boolean
1526
type SQLParams = { [key: string]: SQLValue }
1627
export namespace Parameters {

0 commit comments

Comments
 (0)