Code example for SQLiteDatabase

Methods: execSQLisReadOnly

0
	} 
 
	@Override 
	public void onOpen(SQLiteDatabase db) {
		super.onOpen(db);
		if (!db.isReadOnly()) {
			// Enable foreign key constraints 
			db.execSQL("PRAGMA foreign_keys=ON;");
		} 
	} 
 
	public SyncTable[] getSyncTables() { 
		return syncTables;
	} 
 
	@Override 
	public void onCreate(SQLiteDatabase db) {
		new DataSlicesTable().onCreate(db);
		new SyncChangesTable().onCreate(db);
 
		// Create sync tables