import db.sqlite
import json

struct Tiddler {
	id      int
	created int
}

struct Tiddlers {
	id      int    @[primary; sql: serial]
	created string
}

fn main() {
	tiddler := json.decode(Tiddler, '{}') or { Tiddler{} }
	db := sqlite.connect(':memory:') or { panic(err) }
	sql db {
		create table Tiddlers
		insert tiddler into Tiddlers
	}!
}
