Commit Graph

7 Commits

Author SHA1 Message Date
Asdine El Hrychy
a4958fee6a Add support for CHECK (#436) 2021-11-09 21:14:10 +04:00
Jean Hadrien Chabran
4a6e68439a Refactor to handle errors with internal/errors (#432)
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
2021-08-22 11:47:54 +03:00
Asdine El Hrychy
c0861ed2c5 Add DROP SEQUENCE statement 2021-07-10 13:14:59 +04:00
Asdine El Hrychy
d5401cfe5d Decouple transaction from catalog
To avoid cyclic dependencies, we removed the Catalog from the
Transaction type and pass it around everywhere.
2021-07-02 15:55:58 +04:00
Asdine El Hrychy
da72d3eb39 Drop docid sequence upon table deletion 2021-06-29 00:33:06 +04:00
Asdine El Hrychy
3dcda73a47 Simplify catalog cache logic 2021-06-28 23:21:18 +04:00
Asdine El Hrychy
7a98a2025f Move statements into their own package 2021-05-30 12:47:17 +04:00