mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-07-01 05:26:07 +00:00
WIP
This commit is contained in:
parent
748710f369
commit
11fc43b8ce
@ -11,10 +11,10 @@ pub const DatabaseOptions = struct {
|
||||
database: []const u8,
|
||||
};
|
||||
|
||||
pub const Schema = jetzig.get(type, "Schema");
|
||||
pub const Schema = jetzig.config.get(type, "Schema");
|
||||
|
||||
pub fn Query(comptime table: std.meta.DeclEnum(jetzig.config.get(type, "Schema"))) type {
|
||||
return jetzig.jetquery.Query(@field(jetzig.config.get(type, "Schema"), @tagName(table)));
|
||||
pub fn Query(comptime table: jetzig.jetquery.DeclEnum(jetzig.config.get(type, "Schema"))) type {
|
||||
return jetzig.jetquery.Query(Schema, table);
|
||||
}
|
||||
|
||||
pub fn repo(allocator: std.mem.Allocator, app: *const jetzig.App) !jetzig.jetquery.Repo {
|
||||
|
Loading…
x
Reference in New Issue
Block a user