forked from tableau/document-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetadata_structure.py
More file actions
72 lines (72 loc) · 1.92 KB
/
Copy pathmetadata_structure.py
File metadata and controls
72 lines (72 loc) · 1.92 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
# This file contains local-typ to value mappings for metadata-records
# TODO: This might or might not be database-specific.
postgres = {
'integer': {
'local-type': 'integer',
'remote-type': '3',
'aggregation': 'Sum',
'precision': '10',
'contains-null': 'true',
'__extra__': {
'attributes': {
'DebugRemoteType': 'SQL_INTEGER',
'DebugWireType': 'SQL_C_SLONG'
}
}
},
'string': {
'local-type': 'string',
'remote-type': '130',
'aggregation': 'Count',
'cast-to-local-type': 'true',
'width': '8190',
'contains-null': 'true',
'__extra__': {
'collation': {
'flag': '0',
'name': 'LEN_RUS'
},
'attributes': {
'DebugRemoteType': 'SQL_WLONGVARCHAR',
'DebugWireType': 'SQL_C_WCHAR'
}
}
},
'boolean': {
'local-type': 'boolean',
'remote-type': '11',
'aggregation': 'Count',
'contains-null': 'true',
'__extra__': {
'attributes': {
'DebugRemoteType': 'SQL_BIT',
'DebugWireType': 'SQL_C_BIT'
}
}
},
'date': {
'local-type': 'date',
'remote-type': '7',
'aggregation': 'Year',
'contains-null': 'true',
'__extra__': {
'attributes': {
'DebugRemoteType': 'SQL_TYPE_DATE',
'DebugWireType': 'SQL_C_TYPE_DATE'
}
}
},
'real': {
'local-type': 'real',
'remote-type': '131',
'aggregation': 'Sum',
'precision': '28',
'contains-null': 'true',
'__extra__': {
'attributes': {
'DebugRemoteType': 'SQL_NUMERIC',
'DebugWireType': 'SQL_C_NUMERIC'
}
}
}
}