1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: add != (#9600)

This commit is contained in:
Louis Schmieder
2021-04-08 02:13:25 +02:00
committed by GitHub
parent f809d4052f
commit c37945e37f
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,11 @@ fn test_orm_sqlite() {
db.exec("insert into User (name, age) values ('Peter', 31)")
db.exec("insert into User (name, age, is_customer) values ('Kate', 30, 1)")
c := sql db {
select count from User where id != 1
}
assert c == 2
nr_all_users := sql db {
select count from User
}