MaCH repo

This commit is contained in:
2025-07-24 12:46:01 -05:00
committed by Nick Ricketts
commit 2c63b7ee8d
78 changed files with 4791 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <mach.h>
#include <sqlite.h>
void mach(){
sqlite_config();
sqlite_database(
.name = "hello_db",
.connect = "file:hello.db?mode=rwc",
.migrations = {"create_hello_world_table"},
.seeds = {"seed_hello_world"}
);
resource("home", "/",
.get = {
sqlite_query({"hello_db", "get_hello_world", "hello_world_data"}),
mustache("hello_world")
}
);
}