function dba_sqlite_describe_table in Database Administration 7
Generate code for describing a table.
File
- database/
sqlite.inc, line 26 - Provides database driver specific commands.
Code
function dba_sqlite_describe_table($table) {
$conn = db_set_active(variable_get('dba_active_database', 'default'));
db_set_active($conn);
$rows = db_query("PRAGMA table_info([{$table}])");
return $rows;
}