v2 / vlib / v / fmt / tests / sqlstmt_comments_keep.vv
22 lines · 19 sloc · 312 bytes · cf03ecd0dea089ca17ed3ac22415b0c5e453c0f9
Raw
1import db.sqlite
2
3fn main() {
4 dblite := sqlite.connect(':memory:')!
5 sql dblite {
6 // some comment
7 insert address into Address
8 // some comment2
9 }!
10
11 sql dblite {
12 // some comment
13 drop table Address
14 // some comment2
15 }!
16
17 sql dblite {
18 // some comment
19 create table Address
20 // some comment2
21 }!
22}
23