TJNT6TZFQXLU6TR23YNGDDXTB57ICLZMNHXOC5NT636YWGGEPW6QC
FZ626I2UNMFW4CQRQYE4PPAKU4ZNM2K4INLWMNWHR6JHOTZPF7UQC
V7HS237PBWI3JIA2FKGHVZ6CXT2BFE6VMXGZSJD7RGD6A3U2ISGQC
5F37EUQCHOXFW7BK6YY5P7SAQB64ZCA3COUE4CN4YIY4ENQC2FCAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
3ZE4YIXX3UAKYLD2EJSIX2DPHFUOF3TOUKBPHG4UKX4UOP7DPSEQC
D5MLZ2BYK5M7FMRIJAJZ5JCTDLBIKFYE5WL3EL2PRQR3H43DS74AC
C2FNNPGU3SEXQ64I3MZPA4JQOEKRBMYP3ZTGU4ZYOSN6M7B5CV3QC
VQ7K7TQUT5RYC5M3TG4HYHB2YHDCROFMYNRIPXOQBEU6ZEHGP6TAC
BIWQWRTPVNCRRDNYWFTDP3TGL2ER6U3ESUYPRUADATHZ4N2F5YJQC
ZIDFZNTT4HZDKKWK25U7OPIFSVTSNTZVEKWCBQ6XEPR3HHSNL2AAC
CQXWDYD3WZDT4WUBA4ZJEJ3ZV6JLOJOKYABGX754NG7P44K2ZSSAC
PJWQKTE3MRFDPJQA6LMPVROAMLEZ27UGJ3EOQ4JQXSOFSUJVCT4AC
64UUKXJNHHGNYPQLYPAT74RGYBZNPOHSV7LCWM64K2DJFT5BU6RAC
HZ6R4X4ZMVPIKJZWZ4MYDP2V4OTEUFZVVAQSXRYQ7TZO4QHOZHUQC
F7UEAPOJLX43J32QD6JJ4YABOZLMQR2THHL6BGFTPSYZ35XQJSQAC
dbo.exec('create table irc_servers (id integer primary key, hostname text, netname text)')
dbo.exec('create table irc_channels (id integer primary key, server_id integer, name text)')
dbo.exec_oneshot('create table irc_servers (id integer primary key, hostname text, netname text)')
dbo.exec_oneshot('create table irc_channels (id integer primary key, server_id integer, name text)')
pub fn (mut self Db) exec(stmt string) {
self.sqlite.exec_one(stmt) or { println('db.sqlite fail $stmt $err') }
pub fn (mut self Db) exec_oneshot(stmt string) {
self.sqlite.exec_one(stmt) or { }
}
pub fn (mut self Db) exec(stmt string) [][]string {
rows, code := self.sqlite.exec(stmt)
println("sql exec $stmt = $code")
strs := rows.map(it.vals)
println("$strs")
return strs