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

19 Commits

Author SHA1 Message Date
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
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
yuyi
64558df764
vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
Louis Schmieder
6391f3d2da
orm: fix other int types (#11981) 2021-09-26 11:17:56 +03:00
Louis Schmieder
0d30667ab5
orm: fix orm unique lists (#11198) 2021-08-16 14:59:23 +03:00
Louis Schmieder
1943da54a5
orm: integrate psql to orm (#10933) 2021-07-24 20:49:40 +03:00
Louis Schmieder
26db3b0995
orm: redesign orm (re-write it in V) (#10353) 2021-07-23 12:33:55 +03:00
shadowninja55
534b59e721
examples: rename "Chield" to "Child" in examples/database/orm.v (#10414) 2021-06-11 11:52:06 +03:00
Louis Schmieder
b8e070b2a1
orm: fix multi substructs (#9941) 2021-05-04 12:35:18 +03:00
Louis Schmieder
fb685eee18
orm: support arrays (#9936) 2021-04-30 09:13:26 +03:00
Louis Schmieder
b15156d465
orm: fix mysql substructs (#9930) 2021-04-29 21:00:17 +03:00
Louis Schmieder
e9bbb7de3a
orm: add pg select expr (#9927) 2021-04-29 13:38:36 +03:00
Louis Schmieder
7184629969
orm: add initial pg support (#9827) 2021-04-25 18:57:55 +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
67d8639917
orm: add unique fields & add drop table stmt (#9684) 2021-04-11 23:57:25 +02:00
Louis Schmieder
64391efa4d
orm: add mysql support (#9630)
* add mysql to orm

* fix got to big packet error

* format sql.v

* format example

* custom sql types

* add mysql table cration

* add documentation

* format sql.v

* fix markdown

* start implementing select_expr for mysql

* remove orm.c

* format sql.v

* finish mysql expr

* remove c

* remove unessecary files

* change to c implementation

* remove c

* added str interpolation for idents

* fix string insert

* fix compilation problems

* fix gitly compilation

* fix typing mistake

* add link to orm docs
2021-04-10 17:38:27 +03: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
97c0ef3505
orm: struct field support (#8517) 2021-02-04 20:28:33 +01:00