All new error handling code now rely on internal/errors package
which provides a compilation time toggle that enables to capture
stacktraces for easier debugging while developing.
It also comes with a new testutil/assert package which replaces the require
package when it comes to checking or comparing errors and printing the
stack traces if needed.
Finally, the test target of the Makefile uses the debug build tag by default.
A testnodebug target is also provided for convenience and to make sure no
tests are broken due to not having used the internal/errors or testutil/assert package.
See #431 for more details
This replaces the Value struct by an interface to allow us to override some
values behavior in the future.
It also introduces a new package types, which contains type definitions, comparison,
and arithmetics.
Concerning encoding, Genji now only uses on type of encoding for values. This simplifies
indexing logic as well as table access in general.
This adds support for sequences to Genji. For now, only sequence creation and use is supported, dropping or modifying a sequence will be added later.
To create a sequence:
```sql
CREATE SEQUENCE seq INCREMENT BY 10 MINVALUE 100 NO MAXVALUE START 500 CACHE 32 CYCLE;
```
Table and index information is now stored the same way, with minimal data:
sql: query used to create the table / index
table_name / index_name
store_name