getting tags from the backend
This commit is contained in:
parent
ce67365a49
commit
fd584886c6
3 changed files with 92 additions and 12 deletions
|
|
@ -1,9 +1,3 @@
|
|||
//!
|
||||
//! Part of the Zap examples.
|
||||
//!
|
||||
//! Build me with `zig build app_basic`.
|
||||
//! Run me with `zig build run-app_basic`.
|
||||
//!
|
||||
const std = @import("std");
|
||||
const Allocator = std.mem.Allocator;
|
||||
const builtin = @import("builtin");
|
||||
|
|
@ -77,9 +71,10 @@ pub fn main() !void {
|
|||
.threading_mode = .MultiThread,
|
||||
});
|
||||
defer db.deinit();
|
||||
try db.execDynamic("PRAGMA foreign_keys = ON;", .{}, .{});
|
||||
|
||||
// create an app context
|
||||
var my_context = Context.init(db);
|
||||
var my_context = try Context.init(&db);
|
||||
|
||||
// create an App instance
|
||||
// const App = zap.App.Create(Context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue