Partial upgrade to ZMPL v2
This commit is contained in:
parent
fee65c4b9d
commit
199dc0ca49
4 changed files with 14 additions and 11 deletions
12
src/main.zig
12
src/main.zig
|
|
@ -96,18 +96,18 @@ pub fn main() !void {
|
|||
.threading_mode = .MultiThread,
|
||||
});
|
||||
|
||||
const create =
|
||||
\\CREATE TABLE artists ('artist', 'plays')
|
||||
;
|
||||
//const create =
|
||||
// \\CREATE TABLE artists ('artist', 'plays')
|
||||
//;
|
||||
|
||||
const query =
|
||||
\\INSERT INTO artists ('artist', 'plays') VALUES (?,?)
|
||||
;
|
||||
|
||||
var build = try db.prepare(create);
|
||||
defer build.deinit();
|
||||
//var build = try db.prepare(create);
|
||||
//defer build.deinit();
|
||||
|
||||
try build.exec(.{},.{});
|
||||
//try build.exec(.{},.{});
|
||||
|
||||
var stmt = try db.prepare(query);
|
||||
defer stmt.deinit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue