80 Commits

Author SHA1 Message Date
kbkpbot
7039081d66
db: modify mysql/pg/sqlite interface for pool working (#24780) 2025-06-27 02:25:13 +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
kbkpbot
ef279f67a9
db: add redis (#24730) 2025-06-16 13:29:34 +03:00
Louis Schmieder
73ebf42015
orm: add IN and NOT IN (#24634) 2025-06-02 03:49:10 +03:00
Felipe Pena
ddb15646a7
db.pg: fix incompatible fn signature (#24549) 2025-05-22 20:49:49 +03:00
Alexander Medvednikov
7d57a19d7e checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
kbkpbot
af947f1af5
db: mysql,pg,sqlite add transaction support (fix #24290) (#24352) 2025-04-29 09:10:13 +03:00
kbkpbot
dead5e69b4
json: fix option time (fix #24242) (fix #24175) (#24243) 2025-04-17 14:45:04 +03:00
Hitalo Souza
bab3f23189
db: connection pool (#24161) 2025-04-10 03:17:32 +03:00
kbkpbot
aba4a5ae4a
db.mysql: use hardcoded const declare (fix #22086) (#24162) 2025-04-09 07:32:17 +03:00
kbkpbot
b1ab54bb1d
db.mysql: add null result support (fix #24130) (#24131) 2025-04-04 14:26:16 +03:00
Felipe Pena
9b6ccb3eef
db.mysql: fix handling of nullable timestamp (fix #24120) (#24125) 2025-04-03 17:18:29 +03:00
kbkpbot
01a954310e
db.mysql: use mysql datatype for alloc string_binds_map, not orm's (#24126) 2025-04-03 17:01:29 +03:00
kbkpbot
87b1de8218
db.mysql: add SSL support; turn ConnectionFlag into @[flag] (#23975) 2025-03-19 15:03:40 +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
Louis Brauer
d2b30df19c
db.pg: add support for prepared statement, with db.prepare/3 and db.exec_prepared/2 (#23442) 2025-01-12 13:08:17 +02:00
Delyan Angelov
124927ba96
db.sqlite: add tracing for more calls, when using -d trace_sqlite, not just for the ORM 2025-01-07 16:43:10 +02:00
Delyan Angelov
e9bdfa1dd7
db.sqlite: reduce memory usage in common db.exec() methods (#23286) 2024-12-27 18:36:40 +02:00
Rodrigo Abt
e0a63dba62
db.sqlite: add an exec_map function, returning []map[string]string, given an SQL query (#23246) 2024-12-23 16:06:36 +02:00
Felipe Pena
b0772193f8
vlib: enable more satnitized memleak detection runs without false positives on the CI (#23200) 2024-12-20 16:09:16 +02:00
Alexander Medvednikov
27ff2f1628 orm: cross compile pg to linux; openssl: make cross compile work 2024-10-28 17:37:34 +03:00
alexey semenyuk
bfee824860
docs: fix broken links by adding missing READMEs (#22636) 2024-10-26 13:15:50 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
79786732ef
all: replace struct field name '@type' with 'type' (#22485) 2024-10-11 08:53:18 +03:00
Felipe Pena
6f97ced860
orm: allow comptime field.name as field name (fix #22329) (#22344) 2024-09-29 07:53:47 +03:00
Delyan Angelov
f890566199
db.sqlite: add instructions for installing SQLite's amalgamation or development package, if it is missing 2024-09-10 17:20:29 +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
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Felipe Pena
1e86e06eb6
orm: fix subquery without where expr (#21598) 2024-06-04 13:22:06 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Turiiya
712a9125bf
all: use apt over apt-get for common APT subcommands (#21359) 2024-04-26 21:01:52 +03:00
Roman
2192d9b1e5
db.mysql: fix invalid memory access in exec_one for returned rows with NULL fields (#21317) 2024-04-20 12:52:58 +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
jacksonmowry
8ec990eed8
db.sqlite: fix exec_param_many bug (#21008) 2024-03-13 14:39:15 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Kim Shrier
1207c29044
db.pg: add include and lib paths for PostgreSQL on FreeBSD (#20582) 2024-01-19 10:14:08 +02:00
Felipe Pena
1303c244e2
orm.pg: fix f32 and f64 endianness (#20412) 2024-01-06 22:27:10 +02:00
André ldev
363d4e1f5a
db.pg: fix compilation error with the msvc compiler on windows, and add readme (#20326) 2024-01-01 23:22:15 +02:00
jacksonmowry
06a536eff2
db.pg: fix invalid memory access in res_to_rows (#20248) 2023-12-22 02:02:31 +02:00
jacksonmowry
d86a11c257
db.mysql: add ability to prepare and execute statements separately (#20146) 2023-12-11 13:34:20 +02:00
Dmitriy Mihaylenko
eec9c7f242
db.pg: fix using postgresql on windows, improve instructions for installing it (#20053) 2023-12-01 18:03:28 +02:00
Kim Shrier
7357ef3686
db.mysql: add support for the FreeBSD name of the mariadb client library (#20039) 2023-11-30 15:32:44 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
JalonSolov
24befa0ba6
pg: hande C calls, move to .c.v files (#19739) 2023-11-03 20:43:44 +02:00
Turiiya
690ec7d3a5
all: fix typos (#19693) 2023-10-30 03:28:34 +02:00