mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: update repo to use the new error handling syntax (#8950)
This commit is contained in:
parent
b9a381f101
commit
d63b7bc35a
135 changed files with 487 additions and 468 deletions
|
@ -16,7 +16,7 @@ struct User {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
db := sqlite.connect(':memory:') or { panic(err) }
|
||||
db := sqlite.connect(':memory:') or { panic(err.msg) }
|
||||
db.exec('drop table if exists User')
|
||||
db.exec("create table Module (id integer primary key, name text default '', nr_downloads int default 0, creator int default 0);")
|
||||
db.exec("create table User (id integer primary key, age int default 0, name text default '', is_customer int default 0);")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue