v / vlib / db / README.md
15 lines · 10 sloc · 572 bytes · 3bac2c72359ca58412f31490914b16f20bdaf833
Raw

Description

db is a namespace that contains several useful modules for operating with databases (SQLite, MySQL, MSQL, etc.)

Cross-driver consistency helpers

db.pg and db.mysql accept both user and username in their Config structs.

db.pg, db.mysql, and db.sqlite rows expose row.val(index) and row.values() for direct string access. In db.pg, SQL NULL remains available through row.val_opt(index).

db.pg, db.mysql, and db.sqlite also expose exec_param2(...) as a convenience wrapper around their parameterized query helpers.