@class NSMapTable, NSDictionary, NSMutableDictionary, HMBSQLQueryStatement; @interface HMBLocalSQLContext : HMBSQLContext { struct sqlite3_stmt { } *insertStore; struct sqlite3_stmt { } *deleteStore; struct sqlite3_stmt { } *selectStore; struct sqlite3_stmt { } *selectStores; struct sqlite3_stmt { } *updateStoreReplicationData; struct sqlite3_stmt { } *insertBlock; struct sqlite3_stmt { } *selectBlock; struct sqlite3_stmt { } *deleteBlock; struct sqlite3_stmt { } *deleteBlocksStore; struct sqlite3_stmt { } *updateBlock; struct sqlite3_stmt { } *selectReadyBlocks; struct sqlite3_stmt { } *deleteNullBlocks; struct sqlite3_stmt { } *insertItem; struct sqlite3_stmt { } *insertDeletionItemsForRecordsOfType; struct sqlite3_stmt { } *insertDeletionItemsForRecordWithUUID; struct sqlite3_stmt { } *insertDeletionItemsForRecordsWithParentUUID; struct sqlite3_stmt { } *updateItem; struct sqlite3_stmt { } *deleteItem; struct sqlite3_stmt { } *deleteItemsBlock; struct sqlite3_stmt { } *deleteItemsStore; struct sqlite3_stmt { } *deleteItemStoreExternal; struct sqlite3_stmt { } *selectItemsBlock; struct sqlite3_stmt { } *selectItemsBlockLimit; struct sqlite3_stmt { } *deleteNullItems; struct sqlite3_stmt { } *deleteNullItemsType; struct sqlite3_stmt { } *insertRecord; struct sqlite3_stmt { } *updateRecord; struct sqlite3_stmt { } *updateRecordExternal; struct sqlite3_stmt { } *updateRecordExternalExternal; struct sqlite3_stmt { } *updateRecordExternalUUID; struct sqlite3_stmt { } *updateRecordPush; struct sqlite3_stmt { } *updateRecordPushUUID; struct sqlite3_stmt { } *updateRecordClearPushExpected; struct sqlite3_stmt { } *updateRecordsClearPush; struct sqlite3_stmt { } *updateRecordType; struct sqlite3_stmt { } *deleteRecord; struct sqlite3_stmt { } *deleteRecordBlock; struct sqlite3_stmt { } *deleteRecordUUID; struct sqlite3_stmt { } *deleteRecordExternal; struct sqlite3_stmt { } *deleteRecordsStore; struct sqlite3_stmt { } *deleteZombieRecords; struct sqlite3_stmt { } *selectRecord; struct sqlite3_stmt { } *selectRecordUUIDExternal; struct sqlite3_stmt { } *selectRecordUUID; struct sqlite3_stmt { } *selectRecordExternal; struct sqlite3_stmt { } *selectRecordsPushBlock; struct sqlite3_stmt { } *selectRecordsParentUUID; struct sqlite3_stmt { } *selectRecordsParentUUIDType; struct sqlite3_stmt { } *selectRecordsOfType; struct sqlite3_stmt { } *selectRecords; struct sqlite3_stmt { } *insertIndexSentinel; struct sqlite3_stmt { } *deleteIndexSentinels; struct sqlite3_stmt { } *deleteIndexSentinelsStore; struct sqlite3_stmt { } *selectIndexSentinel; } @property (retain) NSDictionary *queryTables; @property (retain) NSMapTable *queryContextsByClass; @property (retain) NSMutableDictionary *queryContextsByModelType; @property (retain, nonatomic) HMBSQLQueryStatement *selectReadyInputBlocks; @property (retain, nonatomic) HMBSQLQueryStatement *selectReadyRollbackBlocks; @property (retain, nonatomic) HMBSQLQueryStatement *selectAllRecordRows; @property (retain, nonatomic) HMBSQLQueryStatement *selectAllRecordTypeRows; @property (retain, nonatomic) HMBSQLQueryStatement *selectAllRecordParentModelIDRows; @property (retain, nonatomic) HMBSQLQueryStatement *selectAllRecordParentModelIDTypeRows; + (id)openWithURL:(id)a0 readOnly:(BOOL)a1 error:(id *)a2; + (void)unlinkDatastoreAt:(id)a0 everything:(BOOL)a1; + (id)logCategory; - (BOOL)_deleteNullBlocksWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (id)_selectItemsWithBlockRow:(unsigned long long)a0 rowGreaterThan:(unsigned long long)a1 limit:(unsigned long long)a2 returning:(unsigned long long)a3 error:(id *)a4; - (id)flush:(BOOL)a0; - (id)_selectRecordWithRow:(unsigned long long)a0 returning:(unsigned long long)a1 error:(id *)a2; - (BOOL)_deleteRecordWithZoneRow:(unsigned long long)a0 externalID:(id)a1 error:(id *)a2; - (id)_selectZoneWithRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteZoneWithRow:(unsigned long long)a0 error:(id *)a1; - (id)_selectRecordsWithZoneRow:(unsigned long long)a0 parentModelID:(id)a1 returning:(unsigned long long)a2 error:(id *)a3; - (id)initialize; - (id)_selectRecordModelIDWithZoneRow:(unsigned long long)a0 externalID:(id)a1 error:(id *)a2; - (BOOL)_updateRecordsClearPushWithPushBlockRow:(unsigned long long)a0 error:(id *)a1; - (long long)migrateFromSchemaVersion:(long long)a0 error:(id *)a1; - (BOOL)_deleteItemWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteItemsWithBlockRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteZombieRecordsWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteBlocksWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_updateBlockWithRow:(unsigned long long)a0 options:(id)a1 error:(id *)a2; - (void)finalize; - (id)_selectRecordsWithBlockRow:(unsigned long long)a0 returning:(unsigned long long)a1 error:(id *)a2; - (id)sqlTransactionWithActivity:(id)a0 block:(id /* block */)a1; - (BOOL)_deleteRecordWithZoneRow:(unsigned long long)a0 modelID:(id)a1 error:(id *)a2; - (BOOL)_selectRecordsWithZoneRow:(unsigned long long)a0 modelType:(id)a1 returning:(unsigned long long)a2 error:(id *)a3 handler:(id /* block */)a4; - (BOOL)_updateRecordWithZoneRow:(unsigned long long)a0 modelID:(id)a1 externalData:(id)a2 error:(id *)a3; - (id)_selectRecordWithZoneRow:(unsigned long long)a0 parentModelID:(id)a1 modelType:(id)a2 returning:(unsigned long long)a3 error:(id *)a4; - (BOOL)_updateRecordWithRow:(unsigned long long)a0 pushBlockRow:(id)a1 pushData:(id)a2 pushEncoding:(unsigned long long)a3 error:(id *)a4; - (id)initWithURL:(id)a0 readOnly:(BOOL)a1; - (BOOL)_deleteNullItemsWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (id)sqlBlockWithActivity:(id)a0 block:(id /* block */)a1; - (BOOL)_resetOutputForRecordsWithBlockRow:(unsigned long long)a0 error:(id *)a1; - (id)_selectBlockWithRow:(unsigned long long)a0 error:(id *)a1; - (unsigned long long)_insertZoneWithIdentification:(id)a0 name:(id)a1 error:(id *)a2; - (BOOL)_deleteItemWithZoneRow:(unsigned long long)a0 type:(unsigned long long)a1 externalID:(id)a2 error:(id *)a3; - (BOOL)_updateZoneWithRow:(unsigned long long)a0 replication:(id)a1 error:(id *)a2; - (unsigned long long)_insertItemWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 modelType:(id)a3 error:(id *)a4; - (BOOL)_deleteRecordsWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteIndexSentinelsWithZoneRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_updateRecordWithRow:(unsigned long long)a0 externalID:(id)a1 externalData:(id)a2 error:(id *)a3; - (BOOL)_updateItemWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 externalID:(id)a3 externalData:(id)a4 modelEncoding:(unsigned long long)a5 modelData:(id)a6 error:(id *)a7; - (unsigned long long)_insertItemWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 externalID:(id)a3 externalData:(id)a4 modelEncoding:(unsigned long long)a5 modelData:(id)a6 error:(id *)a7; - (BOOL)_deleteBlockWithRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_updateRecordWithZoneRow:(unsigned long long)a0 modelID:(id)a1 pushEncoding:(unsigned long long)a2 pushData:(id)a3 pushBlockRow:(id)a4 error:(id *)a5; - (void).cxx_destruct; - (unsigned long long)_insertDeletionItemsWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 modelType:(id)a3 error:(id *)a4; - (id)_selectIndexSentinelForZoneRow:(unsigned long long)a0 modelType:(id)a1 error:(id *)a2; - (unsigned long long)_insertDeletionItemsWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 parentModelID:(id)a3 error:(id *)a4; - (id)_fetchAllZones:(id *)a0; - (id)selectAllRecordsWithZoneRow:(unsigned long long)a0 returning:(unsigned long long)a1; - (unsigned long long)_deleteRecordWithRow:(unsigned long long)a0 expectedOutputBlockRow:(unsigned long long)a1 error:(id *)a2; - (BOOL)_updateRecordWithZoneRow:(unsigned long long)a0 externalID:(id)a1 externalData:(id)a2 error:(id *)a3; - (id)_selectRecordWithZoneRow:(unsigned long long)a0 externalID:(id)a1 returning:(unsigned long long)a2 error:(id *)a3; - (unsigned long long)_insertBlockWithZoneRow:(unsigned long long)a0 type:(unsigned long long)a1 options:(id)a2 items:(id)a3 error:(id *)a4; - (id)prepare; - (BOOL)_deleteRecordWithRow:(unsigned long long)a0 error:(id *)a1; - (BOOL)_deleteIndexSentinelsWithModelType:(id)a0 error:(id *)a1; - (BOOL)_insertIndexSentinelWithZoneRow:(unsigned long long)a0 modelType:(id)a1 error:(id *)a2; - (void)reloadSQLQueryMetadata; - (BOOL)sqlBlockWithActivity:(id)a0 error:(id *)a1 block:(id /* block */)a2; - (id)_selectRecordsWithZoneRow:(unsigned long long)a0 modelType:(id)a1 returning:(unsigned long long)a2 error:(id *)a3; - (unsigned long long)_insertRecordWithZoneRow:(unsigned long long)a0 externalID:(id)a1 externalData:(id)a2 modelID:(id)a3 parentModelID:(id)a4 modelType:(id)a5 modelEncoding:(unsigned long long)a6 modelData:(id)a7 modelSchema:(id)a8 pushEncoding:(unsigned long long)a9 pushData:(id)a10 pushBlockRow:(id)a11 error:(id *)a12; - (unsigned long long)_insertDeletionItemWithZoneRow:(unsigned long long)a0 blockRow:(unsigned long long)a1 type:(unsigned long long)a2 modelID:(id)a3 error:(id *)a4; - (BOOL)_deleteNullItemsWithZoneRow:(unsigned long long)a0 type:(unsigned long long)a1 error:(id *)a2; - (id)_selectRecordWithZoneRow:(unsigned long long)a0 modelID:(id)a1 returning:(unsigned long long)a2 error:(id *)a3; - (id)_selectRecordsWithZoneRow:(unsigned long long)a0 returning:(unsigned long long)a1 error:(id *)a2; - (id)_selectItemsWithBlockRow:(unsigned long long)a0 returning:(unsigned long long)a1 error:(id *)a2; - (BOOL)_deleteItemWithRow:(unsigned long long)a0 error:(id *)a1; - (void)prepareTables; - (long long)verifyTables; - (BOOL)sqlTransactionWithActivity:(id)a0 error:(id *)a1 block:(id /* block */)a2; - (unsigned long long)_clearPushForRecordRow:(unsigned long long)a0 expectedOutputBlockRow:(unsigned long long)a1 error:(id *)a2; - (unsigned long long)_insertBlockWithZoneRow:(unsigned long long)a0 type:(unsigned long long)a1 error:(id *)a2; - (BOOL)_updateRecordWithRow:(unsigned long long)a0 modelType:(id)a1 modelSchema:(id)a2 error:(id *)a3; - (id)_selectReadyBlocksWithZoneRow:(unsigned long long)a0 type:(unsigned long long)a1 error:(id *)a2; - (long long)migrateToSchema01WithError:(id *)a0; - (BOOL)_updateRecordWithRow:(unsigned long long)a0 modelEncoding:(unsigned long long)a1 modelData:(id)a2 modelSchema:(id)a3 error:(id *)a4; @end