File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,42 @@ You can exit at any time by running the `exit();` command.
138138
139139 sqlite>
140140
141+ As with the Debug server, there is a help command for the SQLite server:
142+
143+ sqlite> help;
144+ Help:
145+ As you'd expect, you can execute any valid SQLite statements against the database to which you're
146+ currently connected (see: `USE [database name];` below).
147+
148+ In addition to regular SQLite commands, Android DebugPort provides additional functionality via several
149+ additional commands.
150+
151+ Available non-SQLite commands (case insensitive):
152+ Databases:
153+ CREATE DATABASE [database name];
154+ Create a new database called [database name].
155+ DROP DATABASE [database name];
156+ Drop the database named [database name] from the app's collection of databases.
157+ USE [database name];
158+ Connect to the database called [database name]. All SQL commands will be executed against
159+ this database until USE is called again.
160+
161+ Inspection:
162+ SHOW CREATE TABLE [table name];
163+ Show the CREATE TABLE command used to create [table name].
164+ SHOW DATABASES;
165+ Show all available databases for the app, including temporary databases.
166+ SHOW TABLES;
167+ Show all of the tables defined for the database to which you are currently connected.
168+
169+ Other:
170+ exit; or quit;
171+ Exit this interpreter.
172+ help;
173+ Show this help message.
174+
175+ sqlite>
176+
141177Try running ` show databases; ` to see the available databases for your app:
142178
143179 sqlite> show databases;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ android {
1111 minSdkVersion 9
1212 targetSdkVersion 23
1313 versionCode 1
14- versionName " 1.0.1 "
14+ versionName " 1.1.0 "
1515 }
1616 buildTypes {
1717 release {
You can’t perform that action at this time.
0 commit comments