1 AT_BANNER([OVSDB -- tables])
3 OVSDB_CHECK_POSITIVE_CPY([table with one column],
4 [[parse-table mytable '{"columns": {"name": {"type": "string"}}}']],
5 [[{"columns":{"name":{"type":"string"}}}]])
7 OVSDB_CHECK_POSITIVE_CPY([immutable table with one column],
8 [[parse-table mytable \
9 '{"columns": {"name": {"type": "string"}},
11 [[{"columns":{"name":{"type":"string"}},"mutable":false}]])
13 OVSDB_CHECK_POSITIVE_CPY([table with maxRows of 2],
14 [[parse-table mytable '{"columns": {"name": {"type": "string"}},
16 [[{"columns":{"name":{"type":"string"}},"maxRows":2}]])
18 OVSDB_CHECK_NEGATIVE_CPY([column names may not begin with _],
19 [[parse-table mytable \
20 '{"columns": {"_column": {"type": "integer"}}}']],
21 [[names beginning with "_" are reserved]],
24 OVSDB_CHECK_NEGATIVE_CPY([table must have at least one column (1)],
25 [[parse-table mytable '{}']],
26 [[Parsing table schema for table mytable failed: Required 'columns' member is missing.]])
28 OVSDB_CHECK_NEGATIVE_CPY([table must have at least one column (2)],
29 [[parse-table mytable '{"columns": {}}']],
30 [[table must have at least one column]])
32 OVSDB_CHECK_NEGATIVE_CPY([table maxRows must be positive],
33 [[parse-table mytable '{"columns": {"name": {"type": "string"}},
35 [[syntax "{"columns":{"name":{"type":"string"}},"maxRows":0}": syntax error: maxRows must be at least 1]])