3ZE4YIXX3UAKYLD2EJSIX2DPHFUOF3TOUKBPHG4UKX4UOP7DPSEQC
module db
import sqlite
import setup
struct Db {
sqlite sqlite.DB
}
pub fn init(config setup.Config) Db {
db := sqlite.connect('db.sqlite') or {
println('cannot open db.sqlite $err')
exit(1)
}
return Db{
sqlite: db
}
}
pub fn (mut self Db) add_irc_server(name string) {
}