Perform a database query
const char *fmt, ... );
- A pointer to the database handle.
- An estimate (in bytes) of how much memory to initially allocate to receive the database result. Specifying a value of 0 will use a default initial setting. If you know the rough order of magnitude of the result in advance (either very small or very large), then you can improve performance by specifying that value in the size_hint. In all cases, the full result will be received.
- A string that controls the format of the output, as described in qdb_statement().
This convenience function provides a single-interface alternative to calling qdb_statement() and qdb_getresult(), and offers a potential performance improvement if the statement and result communication can be made with a single context switch.
- An error occurred (errno is set).