|
KDBC
Unified C Database Connectivity — SQLite, PostgreSQL, MariaDB, Oracle, MSSQL
|
Functions | |
| int | kdbc_execute_update (kdbc_conn *conn, const char *sql) |
| Execute a non-parameterized DML/DDL statement directly. | |
| kdbc_result * | kdbc_execute_query (kdbc_conn *conn, const char *sql) |
| Execute a non-parameterized SELECT directly. | |
Execute SQL without a prepared statement (no parameters).
| int kdbc_execute_update | ( | kdbc_conn * | conn, |
| const char * | sql ) |
Execute a non-parameterized DML/DDL statement directly.
Suitable for DDL (CREATE TABLE, DROP TABLE) or simple DML without parameters. For parameterized queries, use kdbc_prepare() instead.
| conn | An open connection. |
| sql | The SQL statement to execute. |
| kdbc_result * kdbc_execute_query | ( | kdbc_conn * | conn, |
| const char * | sql ) |
Execute a non-parameterized SELECT directly.
The returned result set owns its resources — close it with kdbc_result_close() when done.
| conn | An open connection. |
| sql | The SELECT statement to execute. |