Skip to content

Instantly share code, notes, and snippets.

@yyfrankyy
Created April 21, 2014 12:48
Show Gist options
  • Save yyfrankyy/11141808 to your computer and use it in GitHub Desktop.
Save yyfrankyy/11141808 to your computer and use it in GitHub Desktop.
Checking SQLite's PRAGMA Settings
lw='application_id auto_vacuum automatic_index busy_timeout cache_size cache_spill case_sensitive_like checkpoint_fullfsync collation_list compile_options count_changes data_store_directory database_list default_cache_size defer_foreign_keys empty_result_callbacks encoding foreign_key_check foreign_key_list foreign_keys freelist_count full_column_names fullfsync ignore_check_constraints incremental_vacuum index_info index_list integrity_check journal_mode journal_size_limit legacy_file_format locking_mode max_page_count mmap_size page_count page_size parser_trace query_only quick_check read_uncommitted recursive_triggers reverse_unordered_selects schema_version secure_delete short_column_names shrink_memory soft_heap_limit stats synchronous table_info temp_store temp_store_directory user_version vdbe_addoptrace vdbe_debug vdbe_listing vdbe_trace wal_autocheckpoint wal_checkpoint writable_schema'
for i in $lw; do
echo "$i: $(sqlite3 QMMailDB "PRAGMA $i")";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment