sqlite_query

From Liberty Unleashed Wiki
Revision as of 02:23, 16 October 2010 by Juppi (Talk | contribs)

Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
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

  1. 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
  1.  
  2. -- Todo
  3.  

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.

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox