-
Notifications
You must be signed in to change notification settings - Fork 25
/
global.d.ts
60 lines (57 loc) · 1.25 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// https://www.ibm.com/docs/en/i/7.4?topic=views-syscolumns2
interface TableColumn {
TABLE_SCHEMA: string,
TABLE_NAME: string,
COLUMN_NAME: string,
SYSTEM_COLUMN_NAME: string,
CONSTRAINT_NAME?: string,
DATA_TYPE: string,
CHARACTER_MAXIMUM_LENGTH?: number,
NUMERIC_SCALE?: number,
NUMERIC_PRECISION?: number,
IS_NULLABLE: "Y" | "N",
HAS_DEFAULT: "Y" | "N",
COLUMN_DEFAULT?: string,
COLUMN_TEXT: string,
IS_IDENTITY: "YES" | "NO",
}
// https://www.ibm.com/docs/en/i/7.4?topic=views-sysparms
interface SQLParm {
SPECIFIC_SCHEMA: string,
SPECIFIC_NAME: string,
PARAMETER_NAME: string,
PARAMETER_MODE: "IN" | "OUT" | "INOUT",
DATA_TYPE: string,
CHARACTER_MAXIMUM_LENGTH?: number,
NUMERIC_SCALE?: number,
NUMERIC_PRECISION?: number,
IS_NULLABLE: "YES" | "NO",
DEFAULT?: string,
LONG_COMMENT?: string,
ORDINAL_POSITION: number,
ROW_TYPE: "P" | "R",
}
interface BasicSQLObject {
type: string;
schema: string;
name: string;
specificName: string;
text: string;
system: {
schema: string;
name: string;
}
basedOn: {
schema: string;
name: string;
}
}
interface CPYFOptions {
toLib: string;
toFile: string;
fromMbr: string;
toMbr: string;
mbrOpt: string;
crtFile: string;
outFmt: string
}