mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
* Moved the AST datastructures into their own module. * Collapsed the Expression Enum to just wrappers around structs instead of having actual structs in the definitions. * Added a few more unit tests to ensure nothing got broken. * Added documentation for the new structs. * Added a unifying BinaryExpression Tuple type.
16 lines
323 B
Plaintext
16 lines
323 B
Plaintext
let dbhost = "localhost";
|
|
let dbname = "testdb";
|
|
|
|
let mk_db_conn = macro (host, port, db) => {
|
|
conn_string = "@:@/@" % (host, port, db)
|
|
host = host,
|
|
port = port,
|
|
db = db,
|
|
};
|
|
|
|
let db_conn = mk_db_conn(host, 3306, dbame);
|
|
|
|
let server_config = {
|
|
dbconn = db_conn.conn_string,
|
|
tmpldir = "./templates"
|
|
}; |