165 Commits

Author SHA1 Message Date
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
kbkpbot
d4097212b3
breaking,orm: add table attrs; add table/field comment support for mysql and pg (#24744) 2025-06-18 10:20:09 +03:00
Louis Schmieder
2944710abd
orm: add in and not in to orm_func (fix #24639) (#24642) 2025-06-02 22:10:30 +03:00
Louis Schmieder
73ebf42015
orm: add IN and NOT IN (#24634) 2025-06-02 03:49:10 +03:00
Delyan Angelov
8cb0fc7ca5
ci: reduce false positives for orm_func_test.v on windows (retry it 2 times) 2025-05-04 09:18:10 +03:00
kbkpbot
4e6b56dc4a
orm: add or_where() method to the builder (fix #24244) (#24250) 2025-04-17 14:44:07 +03:00
kbkpbot
711470de4e
orm: fix option field with default null value (fix #24222) (#24228) 2025-04-15 16:50:16 +03:00
kbkpbot
b76997a0c6
orm: set default value for require field if database value is null (fix #24221) (#24222) 2025-04-15 11:02:08 +03:00
kbkpbot
b180a03253
orm: fix option type, convert from int to i8, add examples, etc (fix #24211) (#24213) 2025-04-14 20:19:31 +03:00
kbkpbot
5e69315fc2
orm: add function call based builder API for dynamic queries (fix #24178) (#24196) 2025-04-13 19:18:29 +03:00
Felipe Pena
85a2dd9f13
parser: fix orm generic struct table type parsing (fix #24049) (#24149) 2025-04-07 15:36:52 +03:00
Delyan Angelov
10adb0784d
orm: skip orm_complex_where_test.v for sanitize-memory-clang too 2025-04-05 18:55:22 +03:00
André Luiz
6832df175d
orm: fix gen sql complex where (fix #24136) (#24138) 2025-04-05 15:52:59 +03:00
kbkpbot
690f845594
cgen: fix nested array support for the orm (fix #19327) (#24080) 2025-03-30 15:26:16 +03:00
kbkpbot
fcd2eed048
orm: fix default value quote (fix #24052) (#24057) 2025-03-28 13:02:21 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
Alexander Mandrikov
dd063faf65
orm,cgen: fix @[sql: serial] and @[serial] are not the same (fix #23346) (#23678) 2025-02-09 10:54:45 +02:00
Felipe Pena
7078a2e185
orm: fix codegen for option fk (fix #23383) (#23400) 2025-01-07 17:53:37 +02:00
Swastik Baranwal
f089ba9ff2
cgen, checker: allow using smartcasted sumtype variant values in the ORM queries (fix #23239) (#23241) 2024-12-23 16:19:27 +02:00
Elsie
f3d0c53671
orm: fix list generation and escape loose backtick (#23039) 2024-12-02 00:26:16 +02:00
Alexander Mandrikov
e1a5acc1ef
orm: support plain @[serial] attribute for marking struct fields (#22814) 2024-11-09 17:26:22 +02:00
Felipe Pena
fad49da199
orm: fix order by with custom column name (#22813) 2024-11-09 08:24:59 +03:00
daniel-le97
5d76ee4603
orm: fix orm.Connection only allowing immutable Connections (#22684) 2024-10-28 22:29:47 +02:00
Alexander Medvednikov
4ed9d13803 veb: translations via %translation_key 2024-10-20 21:35:27 +03:00
Delyan Angelov
380500a76b
cgen: fix hardcoded db__pg__DB_last_id for x := sql db { insert address into Address } (fix #22583) (#22582) 2024-10-19 11:07:06 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Skylear
aaa23bb058
orm: update readme with more specifics (#21697) 2024-06-19 06:53:21 +03:00
Alexander Medvednikov
b5b57a2e07 orm: ilike for case insensitive text search 2024-06-10 11:54:25 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Felipe Pena
24af002249
v,breaking: add ability to read enum, fn, interface and sumtype attributes in compile-time, change builtin StructAttribute to VAttribute (#21149) 2024-03-31 09:14:33 +03:00
Alexander Medvednikov
acf0107493 builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +03:00
Turiiya
b98dca585c
checker, orm: add error for unchecked option multi return types, fix undefined behavior (#21106) 2024-03-28 07:31:32 +02:00
Delyan Angelov
59a8690dbd
orm: fix orm_option_time_test.v after 2d0ed2c made insert in parent tables with child ones missing fail 2024-02-11 10:02:36 +02:00
GGRei
2d0ed2c1d6
orm: fix orm insert issue if table missing [Issue : #20017] (#20580) 2024-02-10 05:52:09 +03:00
Elliot Chance
b3eae7831e
orm: fix the generated SQL for the "not equal" operator (#20321) 2024-01-01 13:11:23 +02:00
xjzh123
7b04476683
orm: fix the old attribute syntax in the README's example, to the new @[attr] form (#20305) 2023-12-29 19:00:37 +02:00
Delyan Angelov
033d72093a
ci: mark all orm tests as flaky (mainly to reduce the false positives on windows+MSVC, due to 'cannot open file' sqlite3.obj, when it is rebuilt in parallel) 2023-12-12 12:11:19 +02:00
Felipe Pena
dfab24b936
orm: fix code generated for fields of ?[]Type (#20032) 2023-11-30 23:36:50 +02:00
Felipe Pena
00b1ce5760
orm: fix code generation for an option time.Time field (#20031) 2023-11-29 19:30:34 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Delyan Angelov
f7b9e4eafd
vfmt: automate transition from the old [attribute] to the new @[attribute] syntax (#19912) 2023-11-17 17:43:29 +02:00
Turiiya
b347f546f2
all: update remaining deprecated attr syntax (#19908) 2023-11-17 12:03:51 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00