|
|
| int db::Query::prepare |
( |
Database & |
newdb, |
|
|
const char * |
text | |
|
) |
| | |
Parses SQL statements and prepares for SQL execution.
- Parameters:
-
| newdb | Database handle. |
| text | SQL query or command. |
- Returns:
-
- Note:
- When no longer needed, the query object must be closed with close.
On failure, one of the following error codes is set:
- See also:
- close, get_error_message
|