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

92 Commits

Author SHA1 Message Date
a7f84e79f8 cgen: fix option unwrap from ovoid function (#18173) 2023-05-14 14:38:14 +03:00
3d99f1f2c2 checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
580dbc3f0e orm: allow inserting empty objects with db.sqlite (SQLite uses a slightly different SQL dialect) (#17334) 2023-02-16 11:34:16 +02:00
4747e70d9d orm: make last_id() return int, instead of orm.Primitive (fix #12110) (#17151) 2023-01-29 16:00:23 +02:00
64558df764 vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
b872487d82 cgen: allow ORM to work with DB aliases (#16939) 2023-01-11 11:58:55 +02:00
458e68e196 orm,sqlite,mysql,pg: cleanup import v.ast, using typeof[Type]() 2022-12-07 13:40:46 +02:00
ada8643ac5 checker: disallow using builtin type names for const names (#16599) 2022-12-06 15:44:25 +02:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
f44af02e32 sqlite: affected rows count (#16426) 2022-11-14 17:23:42 +03:00
2634b99769 sqlite: expose SQLite's VFS layer (#16359) 2022-11-09 19:57:06 +02:00
c6158e4519 all: remove unnecessary IError() casts 2022-10-28 19:08:30 +03:00
992b502198 db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
40cbd68272 sqlite: add a sqlite.is_error() helper (#15964) 2022-10-04 10:03:59 +03:00
8b962f8446 checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
f249feb9da orm: support parenthesized expressions as in select from User where (name == 'Sam' && is_customer == true) || id == 1 (#15693) 2022-09-09 21:08:48 +03:00
6110373519 orm: init or implementation (#14989) 2022-08-31 14:43:20 +03:00
e5e750d533 orm: default attribute (#15221) 2022-07-27 00:59:32 +03:00
c8d4534f5b sqlite: remove spurious eprintln on select calls (#15139) 2022-07-20 17:35:38 +03:00
91acd0f380 ci: fix failing v check-md vlib/sqlite/README.md 2022-07-07 13:05:05 +03:00
CC
d86b4951c7 sqlite: add sync and journal funcs, docs (#14970) 2022-07-06 21:01:27 +03:00
CC
6a567a0dd6 sqlite: improve exec_none behaviour (#14955) 2022-07-06 10:44:36 +03:00
5df3d8ac75 orm: mysql fixes (#14772) 2022-06-16 20:19:49 +03:00
a83ac948a0 orm: document & fix pg (#14533) 2022-05-26 22:53:09 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
e97ebf8cfc sokol: byte => u8 2022-04-15 16:12:05 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
9d0a5942ac builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
075cd29c14 sqlite: add busy_timeout() (#13053) 2022-01-06 11:47:20 +02:00
a60b381d5e docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
0ec02e3247 sqlite: add enum result code (#12505) 2021-11-18 13:56:15 +02:00
11ce26b3f6 sqlite: make constants public (#12485) 2021-11-17 05:45:50 +03:00
cc8ee5fb84 all: introduce isize and usize (#11437) 2021-09-08 05:53:39 +03:00
a55ba08fad orm: fix time (#11026) 2021-08-03 05:17:00 +03:00
26db3b0995 orm: redesign orm (re-write it in V) (#10353) 2021-07-23 12:33:55 +03:00
Ken
5266b4921d sqlite: add a last_insert_rowid fn (#10341) 2021-06-04 18:10:20 +03:00
ce3e71cb8e OpenBSD: support Boehm-GC, X11 and Sqlite (#10300) 2021-06-01 22:28:30 +03:00
539594bfce sqlite: add error struct for optional result (#10209) 2021-05-27 12:45:34 +03:00
f09a5135e9 checker: handle builtin enum init correctly 2021-05-20 03:14:32 +03:00
ed6ad728d9 vweb: fix serving static files 2021-05-16 04:28:14 +03:00
8a380f4699 tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
d4f31412b7 v: deprecate @VROOT in favour of @VMODROOT (#9795) 2021-04-19 19:01:47 +03:00
73352583e7 ci: fix all -cstrict warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
89838f2e21 tutorials: blog: use db.create_table() 2021-04-06 22:15:14 +03:00
2d73411396 checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
b712af56fd all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
ad162cd6fc checker: stricter unknown type checks, show better suggestions (#8816) 2021-02-19 11:23:13 +02:00
4a0367a63c vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00