1
0
dust/examples/table.ds

25 lines
426 B
Plaintext
Raw Normal View History

table = create_table <text number bool> [
["a", 1, true]
["b", 2, true]
["a", 3, true]
]
2023-10-06 12:17:37 +00:00
test_table = create_table <text bool> [
["a", true]
["b", true]
["a", true]
]
2023-10-06 12:17:37 +00:00
select = select <text bool> from table
2023-10-06 12:17:37 +00:00
(assert_equal select, test_table)
2023-10-06 12:17:37 +00:00
test_table = create_table <text number bool> [
["a", 1, true]
["a", 3, true]
]
select_where = select * from table where text == "a"
assert_equal(select_where, test_table);