sqlite_query
From Liberty Unleashed Wiki
Note: This function requires the external module lu_sqlite.
This function executes a query to a SQLite database. The function returns a pointer to a result struct or null if the query does not return any values. The query result should always be freed using sqlite_free to avoid any memory leaks.
Syntax
UserPointer sqlite_query( UserPointer database, string query )
Arguments
- database - This is a pointer to a previously opened database
- query - This is the query to be executed in SQL language
Example
Some explanation here.
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
-- Todo
Notes
-- List of used functions and other notes here.
For a larger example, check the SQLite database example from the wiki tutorials.
Related Functions
These functions are provided by the official module lu_sqlite.