From NSB App Studio
Jump to navigation Jump to search

SQLDump(DB, tablename)


SQLDump() outputs the content of an SQLite database table to the console. It works both in the local console and when connected the remote console of an Android or iOS device.

It replaces a similar functionality which existed with WebSQL, as a tab in the Chrome Console.

DB is the reference to the database, returned by SqlOpenDatabase. It's helpful to declare this as a global variable.

tablename is the name of a table in the database.

For more information on SQLite, see Using SQLite.


Related Items