forked from paulfitz/daff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeta.hx
113 lines (99 loc) · 2.29 KB
/
Meta.hx
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// -*- mode:java; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
#if !TOPLEVEL
package coopy;
#end
/**
*
* Describe and manipulate columns of a table.
*
*/
interface Meta {
/**
*
* Change the columns of a table.
*
* @param columns an ordered list of columns and the changes
* to apply.
*
* @return true on success.
*
*/
function alterColumns(columns : Array<ColumnChange>) : Bool;
/**
*
* Add, remove, or update a row of the table.
*
* @param rc the change to make.
*
* @return true on success.
*
*/
function changeRow(rc: RowChange) : Bool;
/**
*
* Apply flags to control future changes to table.
*
* @param flags the desired options.
*
* @return true on success.
*
*/
function applyFlags(flags: CompareFlags) : Bool;
/**
*
* @return A table describing the columns of a table, if available.
* If a table is returned, it should have the same number
* of columns as the original, plus on extra
* initial column. Its header row should be the same
* as the original, with "@" in the extra column.
* Subsequent rows may have an arbitrary tag in the first
* column, followed by values to be associated with that tag
* for each column.
*
*/
function asTable() : Table;
/**
*
* Make a copy. Deprecated.
*
* @return a copy of this object.
*
*/
function cloneMeta(table: Table = null) : Meta;
/**
*
* @return true if the interface can make column-level changes.
*
*/
function useForColumnChanges() : Bool;
/**
*
* @return true if the interface can make row-level changes.
*
*/
function useForRowChanges() : Bool;
/**
*
* @return a streaming interface for rows.
*
*/
function getRowStream() : RowStream;
/**
*
* @return true if the table may be nested (containing subtables).
*
*/
function isNested() : Bool;
/**
*
* @return true if the table is best accessed via sql.
*
*/
function isSql() : Bool;
/**
*
* @return a name for the table if it has one, otherwise null.
*
*/
function getName() : String;
}