-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule.jai
More file actions
17 lines (15 loc) · 949 Bytes
/
module.jai
File metadata and controls
17 lines (15 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#module_parameters(
ONLY_C_BINDINGS := false, // don't even include the wrapper
VERBOSE := false, // log wrapper-invoked SQL statements to console
USE_MODEL_CACHE := false, // set true in your main program to enable ORM-like features
FROM_METAPROGRAM := false, // set true in your meta program to enable ORM features
STRICT_TABLES := false, // (ORM) use strict tables
MAKE_MIGRATIONS := false // (ORM) work in progress
);
#if MAKE_MIGRATIONS && !FROM_METAPROGRAM then #assert false "MAKE_MIGRATIONS only works from the metaprogram.";
#if !ONLY_C_BINDINGS { #load "src/SQLite.jai";
#if FROM_METAPROGRAM then #load "src/Meta.jai";
#if FROM_METAPROGRAM && MAKE_MIGRATIONS then #load "src/Migrator.jai";
#if FROM_METAPROGRAM || USE_MODEL_CACHE then #load "src/Model_Cache.jai";
}
#load "lib/sqlite3.jai";