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

58 Commits

Author SHA1 Message Date
walking devel
8452644ec3
orm: enforce that queries always return a Result, a query-resulting array can be used as a V array in place. (#17871) 2023-04-04 08:23:06 +03:00
walking devel
d0e78b1da6
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
walking devel
5d4c9dc9fc
checker: allow using struct field as ORM limit and offset. (#17330) 2023-02-15 19:47:35 +02:00
walking devel
d563739264
checker: add type checking for ORM limit, offset, and order by. (#17095) 2023-01-31 10:22:02 +02:00
walking devel
2fb9bdce9a
cgen, checker: add panic in ORM for invalid queries, when there are no or {} blocks, add type checking for the fkey attribute, add tests (#16977) 2023-01-17 20:21:10 +02:00
yuyi
64558df764
vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Louis Schmieder
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
Louis Schmieder
5df3d8ac75
orm: mysql fixes (#14772) 2022-06-16 20:19:49 +03:00
Louis Schmieder
a83ac948a0
orm: document & fix pg (#14533) 2022-05-26 22:53:09 +03:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Louis Schmieder
d33f7d12f7
orm: fix time struct in sql stmt (#12298) 2021-10-28 22:31:41 +03:00
Louis Schmieder
6391f3d2da
orm: fix other int types (#11981) 2021-09-26 11:17:56 +03:00
Louis Schmieder
a55ba08fad
orm: fix time (#11026) 2021-08-03 05:17:00 +03:00
Louis Schmieder
26db3b0995
orm: redesign orm (re-write it in V) (#10353) 2021-07-23 12:33:55 +03:00
Alexander Medvednikov
ed6ad728d9 vweb: fix serving static files 2021-05-16 04:28:14 +03:00
Louis Schmieder
faf2656335
orm: support multiline statements (#9888) 2021-04-27 15:28:57 +03:00
Louis Schmieder
dcf4a6b008
orm: add support for custom table names & custom field names (#9697) 2021-04-15 10:53:43 +03:00
Louis Schmieder
c37945e37f
orm: add != (#9600) 2021-04-08 02:13:25 +02:00
Louis Schmieder
ab03357a6e
orm: add table creation (#9621) 2021-04-07 15:27:02 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Louis Schmieder
969f19daf4
orm: fix null strings (#8497) 2021-02-01 21:44:09 +01:00
Lukas Neubert
6969300f8a
test-cleancode: add vlib/orm (#7577) 2020-12-26 14:40:22 +02:00
Louis Schmieder
2a7a6fa1eb
orm: add delete stmt (#5725) 2020-07-07 16:55:32 +02:00
Delyan Angelov
3c432f5e07 orm: require order by instead of just order 2020-07-02 23:37:30 +03:00
Louis Schmieder
421b6d4a80
orm: fix offset when order is given too (#5625) 2020-07-02 23:22:52 +03:00
Louis Schmieder
b89cbf3224
orm: add support for ordering (#5624) 2020-07-02 20:29:22 +03:00
Delyan Angelov
8f1e8a9dde orm: cleanup test (put structs at top) 2020-06-28 22:10:49 +03:00
Alexander Medvednikov
190f970544 checker: handle limit and offset 2020-06-27 16:41:29 +02:00
Alexander Medvednikov
3672cfad0b orm: offset test 2020-06-27 16:25:25 +02:00
Alexander Medvednikov
f073ffa4ad orm: limit 2020-06-27 16:19:12 +02:00
Alexander Medvednikov
d52f1da7a2 orm: handle missing rows 2020-06-26 20:38:21 +02:00
Alexander Medvednikov
328cb7ed7e orm: update with selectors and other fixes 2020-06-25 22:23:19 +02:00
Alexander Medvednikov
450c6e843c orm: update with multiple fields 2020-06-25 17:18:44 +02:00
Alexander Medvednikov
b280e08ee0 orm: update cgen 2020-06-25 17:12:32 +02:00
Alexander Medvednikov
786be1d1c3 orm: move type logic to checker, so that sql queries can be used before type def 2020-06-25 12:05:24 +02:00
Alexander Medvednikov
9df29d0dd2 checker: do not allow {} for aliases; orm: update stmt 2020-06-24 16:35:18 +02:00
Alexander Medvednikov
090e6e936a orm: SqlStmt 2020-06-24 14:32:17 +02:00
Alexander Medvednikov
cf7ac7be7f cgen: zero_struct_field(); orm: zero un-inited fields 2020-06-24 12:53:39 +02:00
Alexander Medvednikov
16dd889922 orm: test true/false 2020-06-23 13:59:00 +02:00
Alexander Medvednikov
e3f00ff28b orm: limit 1 test 2020-06-22 16:58:43 +02:00
Alexander Medvednikov
deb09d95b0 orm: fix column == var; limit 1; vweb: @footer 2020-06-22 16:52:16 +02:00
Alexander Medvednikov
cd8392e42d orm: insert 2020-06-19 16:43:35 +02:00
Alexander Medvednikov
a602673adb x64: pass variables to functions 2020-06-17 20:18:51 +02:00
Alexander Medvednikov
325a7c7ec5 orm: more fixes and tests 2020-06-17 14:29:44 +02:00
Alexander Medvednikov
6066414afa orm: select many 2020-06-17 14:18:32 +02:00
Alexander Medvednikov
fb5cae7376 orm: select where id = x 2020-06-17 04:05:20 +02:00
Alexander Medvednikov
ed58192e4c v orm: select 2020-06-17 00:59:37 +02:00
Alexander Medvednikov
e8f8defc3e ast: SqlExpr 2020-06-16 12:14:22 +02:00