Skip to content

Instantly share code, notes, and snippets.

@neror
Created October 21, 2009 19:58
Show Gist options
  • Select an option

  • Save neror/215413 to your computer and use it in GitHub Desktop.

Select an option

Save neror/215413 to your computer and use it in GitHub Desktop.
SQLITE_DB_FILE=AppData.sqlite
SIMULATOR_HOME=$(HOME)/Library/Application\ Support/iPhone\ Simulator
dbshell:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec sqlite3 {} ';'
killdb:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec rm {} ';'
dbschema:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec sqlite3 {} .schema ';'
dbdump:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec sqlite3 {} .dump ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment