add copius TODOs
This commit is contained in:
parent
8925367a70
commit
c3f452c07b
|
@ -3,6 +3,13 @@ const sqlite = @import("sqlite");
|
|||
|
||||
pub fn handler(allocator: std.mem.Allocator, account_id: []const u8, event_data: []const u8) ![]const u8 {
|
||||
_ = event_data;
|
||||
// TODO: We'll need hold of the server response object here so we can muck with status
|
||||
// for client validation issues such as "table names must be > 2"
|
||||
|
||||
// TODO: If the file exists, this will blow up
|
||||
// TODO: Need configuration for what directory to use
|
||||
// TODO: File names should align to account ids
|
||||
// TODO: Should this be a pool, and if so, how would we know when to close?
|
||||
var db = try sqlite.Db.init(.{
|
||||
.mode = sqlite.Db.Mode{ .File = "donotuse.db" },
|
||||
.open_flags = .{
|
||||
|
@ -11,6 +18,8 @@ pub fn handler(allocator: std.mem.Allocator, account_id: []const u8, event_data:
|
|||
},
|
||||
.threading_mode = .MultiThread,
|
||||
});
|
||||
|
||||
// TODO: Create metadata table by account on first create
|
||||
// DDB minimum table name length is 3. DDB local creates this table with metadata
|
||||
// This of course is only if the database is first run
|
||||
// try db.exec(
|
||||
|
|
Loading…
Reference in New Issue
Block a user