diff --git a/examples/common.ssqls b/examples/common.ssqls new file mode 100644 index 0000000..597ace5 --- /dev/null +++ b/examples/common.ssqls @@ -0,0 +1,4 @@ +option implementation_extension cc +option header_extension hh +option accessor_style getX +option exception_on_schema_mismatch true diff --git a/examples/stock.ssqls b/examples/stock.ssqls new file mode 100644 index 0000000..fd4562d --- /dev/null +++ b/examples/stock.ssqls @@ -0,0 +1,10 @@ +include common.ssqls + +table stock alias SQLStock filebase ssqls_stock + field item type bigint alias id is autoinc is key + field num type bigint + field weight type double + field price type double + field sdate type date + field description type mediumtext is null + diff --git a/test/test1.ssqls b/test/test1.ssqls new file mode 100644 index 0000000..c993a30 --- /dev/null +++ b/test/test1.ssqls @@ -0,0 +1,13 @@ +# This is a comment. +# The following blank lines should also be ignored. + +include test2.ssqls + +table test_ssqls alias TestSsqls filebase test3 + field item type bigint alias id is autoinc is key + field num type bigint + field weight type double + field price type decimal(2) + field sdate type date + field description type mediumtext is null + diff --git a/test/test2.ssqls b/test/test2.ssqls new file mode 100644 index 0000000..d24185f --- /dev/null +++ b/test/test2.ssqls @@ -0,0 +1,6 @@ +# Here we give non-default values for all known options, partly to +# exercise them, and partly to test that the include directive works. +option implementation_extension cc +option header_extension hh +option accessor_style getX +option exception_on_schema_mismatch true