Module db

Module db 

Source
Expand description

Database operations (SQLite and PostgreSQL)

Windjammer’s std::db module maps to these functions. Note: This is a simplified wrapper. For production use, consider using sqlx directly.

Structs§

Connection
Database connection
Row
Database row

Enums§

DatabaseType
Database type

Functions§

open
Open a database connection (auto-detect type)
open_postgres
Open a PostgreSQL database connection Format: “postgres://user:password@host:port/database”
open_sqlite
Open a SQLite database connection