|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.autoandroid.positron.Databases
public class Databases
Constructor Summary | |
---|---|
Databases(Instrumentation instrumentation)
|
Method Summary | |
---|---|
void |
backup()
Backup all databases in the target context. |
void |
backup(String database)
Back up the given database by copying its defining file out of the way. |
void |
restore()
Restore all databases that have backups in the target context. |
void |
restore(String database)
Restore the given database by copying the backup file back in place. |
void |
sql(String database,
int... scriptsAsRawResources)
Execute Sql scripts loaded from a raw resources. |
void |
sql(String database,
String script)
Execute Sql from a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Databases(Instrumentation instrumentation)
Method Detail |
---|
public void backup()
public void restore()
public void backup(String database)
database
- The database to back up.public void restore(String database)
database
- The database to restore.public void sql(String database, int... scriptsAsRawResources)
database
- The database to execute the sql.scriptsAsRawResources
- A varargs of R.raw.XXX resource ids of scripts to execute.public void sql(String database, String script)
database
- The database to execute the sql.script
- Literal sql to run.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |