Open
Description
I downloaded Sqlite and put it in C:\Paths\v\thirdparty\sqlite
, but I still can't run it successfully.
Because there is no sqlite3.cpp
file.
I am a novice and I don't know how to deal with this problem.
I am using Windows system.
Please help me.
PS C:\Codes\v\demo1\test2> v run .
src/main.v:21:10: warning: `nonull` attribute is deprecated; non-optional fields are always "NOT NULL", use Option fields where they can be NULL
19 |
20 | sql db {
21 | create table User
| ~~~~~~~~~~
22 | create table Product
23 | } or { panic('error on create table: ${err}') }
src/main.v:22:10: warning: `nonull` attribute is deprecated; non-optional fields are always "NOT NULL", use Option fields where they can be NULL
20 | sql db {
21 | create table User
22 | create table Product
| ~~~~~~~~~~~~~
23 | } or { panic('error on create table: ${err}') }
24 |
src/product_service.v:20:10: warning: `nonull` attribute is deprecated; non-optional fields are always "NOT NULL", use Option fields where they can be NULL
18 |
19 | sql db {
20 | insert product_model into Product
| ~~~~~~~~~~~~~
21 | } or { insert_error = err.msg() }
22 |
src/user_services.v:26:10: warning: `nonull` attribute is deprecated; non-optional fields are always "NOT NULL", use Option fields where they can be NULL
24 | mut insert_error := ''
25 | sql db {
26 | insert user_model into User
| ~~~~~~~~~~
27 | } or { insert_error = err.msg() }
28 | if insert_error != '' {
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE -fwrapv -I "C:\Paths\v\thirdparty\sqlite" -L "C:\Paths\v\thirdparty\sqlite" -o "C:\Users\Administrator\.vmodules\.cache\ae\ae3b8e35bf328460220cad449866cb41.module.db.sqlite.o" -c "C:\Paths\v\thirdparty\sqlite\sqlite3.cpp"
builder error: cc1plus.exe: fatal error: C:\Paths\v\thirdparty\sqlite\sqlite3.cpp: No such file or directory
compilation terminated.
Metadata
Metadata
Assignees
Labels
No labels