1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib
Delyan Angelov db97630117
examples, orm: fix orm example; add -d trace_orm option to see all ORM generated queries (#17770)
* orm: add tracing of the generated queries by the orm module, when a program is compiled with `-d trace_orm`

* examples: fix examples/database/orm.v, add comments, and ensure that the example can be run several times with no errors

The example demonstrates connecting to all 3 DBs in the same program, and will be added to the CI very soon,
to serve both as a regression test, if it fails, and as an example to how to use the ORM in combination with
raw SQL queries to the DBs (which are driver/wrapper specific, unlike the ORM, but can be more convenient in some situations).
2023-03-25 21:46:17 +02:00
..
arrays arrays: replace C.memcpy with vmemcpy calls, to make v -shared -Wimpure-v vlib/arrays/ pass (#17357) 2023-02-19 19:01:18 +02:00
benchmark
bitfield
builtin builtin: optimise the common case of s.contains("x") add s.contains_byte(x) (#17702) 2023-03-19 01:10:13 +03:00
cli
clipboard checker: check nested struct field with required attr (fix #10913) (#17277) 2023-02-11 11:22:31 +02:00
compress v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
context
crypto ast, parser, fmt: fix fmt error of infix expr with comments (fix #17560) (#17583) 2023-03-12 01:07:13 +02:00
datatypes datatypes: fix linked list of map (fix #17570) (#17573) 2023-03-09 14:26:01 +01:00
db parser: breaking change, let V ORM queries return arrays for *all* non-count queries, including limit = 1 (#17719) 2023-03-22 09:48:01 +02:00
dl docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
dlmalloc
encoding docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
eventbus docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
flag
fontstash
gg gg: add toggle_fullscreen and is_fullscreen (#17371) 2023-02-20 21:58:04 +02:00
gx docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
hash
io checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
js docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
json json: make enums work with json encode+decode (serialised as string names by default; the old integer one is supported too, using [json_as_number]) (#17696) 2023-03-22 10:33:32 +02:00
log
maps
math crypto, math: change option to result (#17580) 2023-03-10 10:31:05 +02:00
mssql
mysql orm: allow inserting empty objects with db.sqlite (SQLite uses a slightly different SQL dialect) (#17334) 2023-02-16 11:34:16 +02:00
net net.http.mime: execute v run vlib/net/http/mime/build.vsh to update db.v with the latest official mime types 2023-03-24 08:29:32 +02:00
orm examples, orm: fix orm example; add -d trace_orm option to see all ORM generated queries (#17770) 2023-03-25 21:46:17 +02:00
os os: add create_no_window parameter to Process (#17726) 2023-03-21 11:24:40 +02:00
pg orm: allow inserting empty objects with db.sqlite (SQLite uses a slightly different SQL dialect) (#17334) 2023-02-16 11:34:16 +02:00
picoev checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
picohttpparser
rand all: rename it to index in array inits (#17543) 2023-03-08 20:51:45 +01:00
readline readline: add more readline support to macos too (not simply os.get_raw_line based, but arrow key navigation, history etc too) (#17602) 2023-03-12 01:06:35 +02:00
regex regex: fix issue with multiple repetitions out of the groups (#17774) 2023-03-25 20:49:01 +02:00
runtime
semver checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
sokol sokol.gfx: update the C.sg_pass_attachment_desc declaration to match the one from the Sokol headers 2023-03-14 09:02:03 +02:00
sqlite orm: allow inserting empty objects with db.sqlite (SQLite uses a slightly different SQL dialect) (#17334) 2023-02-16 11:34:16 +02:00
stbi
strconv tests: remove unnecessary v_printf test 2023-03-19 15:30:52 +03:00
strings
sync sync: fix error of empty struct channel (fix #17556) (#17597) 2023-03-11 12:02:51 +02:00
szip
term checker: disallow enum initalization (#17361) 2023-02-19 22:22:07 +01:00
time cgen: allow using of original operation if alias is number and no custom method is defined (#17718) 2023-03-21 11:39:58 +02:00
toml toml: clean up autocast in parser.v (#17662) 2023-03-18 23:15:00 +03:00
v ast: fix concrete function type used as generic type (#17769) 2023-03-25 21:45:19 +02:00
vweb vweb.assets: add option for custom href and src attribute values (#17703) 2023-03-19 10:02:59 +02:00
x json2: fix decode to map doesn't work (#17757) 2023-03-24 17:30:32 +02:00
.vdocignore doc: ignore builtin/wasm (#17480) 2023-03-03 12:35:21 +02:00
README.md

vlib Documentation

vlib is the term for all modules included by default with V and maintained as part of the V source code repository.

Some included modules depend on third party libraries, and these are kept separate in the thirdparty directory at the root level of the source repository.