OS: linux, Ubuntu 22.04.1 LTS (WSL 2)
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
CC version: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
getwd: /home/friday/projects/vsql-src/examples
vmodules: /home/friday/.vmodules
vroot: /home/friday/projects/v
vexe: /home/friday/projects/v/v
vexe mtime: 2022-12-11 14:27:37
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.2 f5d0ba3.ad24c22
Git version: git version 2.34.1
Git vroot status: weekly.2022.49-22-gad24c222
.git/config present: true
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3-dirty
friday@DESKTOP-R96JRLH:~/projects/vsql-src/examples$ v simple.v
/home/friday/.vmodules/elliotchance/vsql/vsql/server.v:21:26: warning: reference field `elliotchance.vsql.vsql.Connection.options.query_cache` must be initialized (part of struct `elliotchance.vsql.vsql.ConnectionOptions`)
19 |
20 | pub fn new_server(options ServerOptions) Server {
21 | return Server{options, &Connection{
| ~~~~~~~~~~~
22 | query_cache: new_query_cache()
23 | }}
/home/friday/.vmodules/elliotchance/vsql/vsql/server.v:21:26: warning: reference field `elliotchance.vsql.vsql.Connection.options.mutex` must be initialized (part of struct `elliotchance.vsql.vsql.ConnectionOptions`)
19 |
20 | pub fn new_server(options ServerOptions) Server {
21 | return Server{options, &Connection{
| ~~~~~~~~~~~
22 | query_cache: new_query_cache()
23 | }}
/home/friday/.vmodules/elliotchance/vsql/vsql/cast.v:69:15: error: unknown method `cast_rules` did you mean to access the field with the same name instead?.
12 possibilities: `find_function`, `open_read_connection`, `open_write_connection`, `prepare`, `query`, `register_func`, `register_function`, `register_virtual_table`, `release_read_connection`, `release_write_connection`, `schema_tables`, `schemas`.
67 | key := '$v.typ.typ AS $to.typ'
68 | if key in conn.cast_rules {
69 | return conn.cast_rules[key](conn, v, to)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | }
71 |
/home/friday/.vmodules/elliotchance/vsql/vsql/eval.v:525:15: error: unknown method `binary_operators` did you mean to access the field with the same name instead?.
12 possibilities: `find_function`, `open_read_connection`, `open_write_connection`, `prepare`, `query`, `register_func`, `register_function`, `register_virtual_table`, `release_read_connection`, `release_write_connection`, `schema_tables`, `schemas`.
523 | key := '$left.typ.typ $e.op $right.typ.typ'
524 | if key in conn.binary_operators {
525 | return conn.binary_operators[key](conn, left, right)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
526 | }
527 |
/home/friday/.vmodules/elliotchance/vsql/vsql/eval.v:536:15: error: unknown method `unary_operators` did you mean to access the field with the same name instead?.
12 possibilities: `find_function`, `open_read_connection`, `open_write_connection`, `prepare`, `query`, `register_func`, `register_function`, `register_virtual_table`, `release_read_connection`, `release_write_connection`, `schema_tables`, `schemas`.
534 | key := '$e.op $value.typ.typ'
535 | if key in conn.unary_operators {
536 | return conn.unary_operators[key](conn, value)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
537 | }
538 |
/home/friday/.vmodules/elliotchance/vsql/vsql/row.v:274:21: error: casting numbers to enums, should be done inside `unsafe{}` blocks
272 | match col.typ.typ {
273 | .is_boolean {
274 | v.bool_value = Boolean(buf.read_u8())
| ~~~~~~~~~~~~~~~~~~~~~~
275 | if v.bool_value == .is_unknown {
276 | v.is_null = true