Skip to content

Commit a96aeed

Browse files
committed
feat add type sql column value
1 parent 7edc781 commit a96aeed

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

types/parameters.ts

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

5+
export type SQLColumnValue = {
6+
name: string,
7+
type: string,
8+
nullable: boolean,
9+
index: string,
10+
autoincrement: boolean,
11+
unique: boolean,
12+
};
13+
514
export type SQLValue = null | string | number | Uint8Array | boolean
615
type SQLParams = { [key: string]: SQLValue }
716
export namespace Parameters {
@@ -102,4 +111,4 @@ export namespace Parameters {
102111
}
103112

104113

105-
export default Parameters
114+
export default Parameters

0 commit comments

Comments
 (0)