@class NSString, PSIWordEmbeddingTable, PSIStatement, PLSearchMetadataStore, PSIIntArray, NSObject, NSDictionary, NSMutableString, NSMutableArray, PSITokenizer; @protocol OS_dispatch_queue; @interface PSIDatabase : NSObject { struct sqlite3 { } *_inqDatabase; BOOL _databaseIsValid; struct __CFDictionary { } *_inqPreparedStatements; PSIIntArray *_matchingIds; PSIWordEmbeddingTable *_inqWordEmbeddingTable; PSIStatement *_assetUUIDByAssetIdWithAssetIdsStatement; PSIStatement *_collectionResultByCollectionIdWithCollectionIdsStatement; PSIStatement *_inqAssetIdsByGroupIdForAssetIdsStatement; PSIStatement *_inqCollectionIdsByGroupIdForCollectionIdsStatement; PSIStatement *_inqNumberOfAssetsMatchingGroupWithIdStatement; PSIStatement *_inqNumberOfAssetsByGroupIdMatchingGroupsWithIdsStatement; PSIStatement *_inqNumberOfCollectionsMatchingGroupWithIdStatement; PSIStatement *_inqNumberOfCollectionsByGroupIdMatchingGroupsWithIdsStatement; PSIStatement *_inqIdsOfAllGroupsStatement; PSIStatement *_inqIdsOfAllGroupsInPrefixStatement; struct __CFDictionary { } *_inqGroupObjectsById; NSObject *_serialQueue; NSObject *_searchQueue; NSObject *_groupResultsQueue; PLSearchMetadataStore *_inqSearchMetadataStore; NSDictionary *_inqSearchMetadata; PSITokenizer *_tokenizer; NSMutableString *_tokenizerOutputString; NSMutableArray *_tokenizerOutputTokens; NSMutableArray *_tokenizerOutputNormalizedTokens; struct { long long location; long long length; } _tokenizerOutputRanges[8]; } @property (readonly) PSITokenizer *tokenizer; @property (readonly) NSObject *groupResultsQueue; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly, copy, nonatomic) NSString *path; @property (readonly, nonatomic) long long options; + (id)searchDatabaseLog; + (void)_dropDatabase:(struct sqlite3 { } *)a0 withCompletion:(id /* block */)a1; + (void)dropDatabaseAtPath:(id)a0 withCompletion:(id /* block */)a1; + (struct sqlite3 { } *)_openDatabaseAtPath:(id)a0 options:(long long)a1; + (BOOL)_integrityCheckDatabase:(struct sqlite3 { } *)a0; - (void)_inSearchQueueAsync:(id /* block */)a0; - (struct __CFArray { } *)_inqNewCollectionIdsWithDateFilter:(id)a0; - (void)_inqNewGroupIdsForAssetIdsV2:(struct __CFArray { } *)a0 completion:(id /* block */)a1; - (void)_inqSync:(id /* block */)a0; - (id)searchResultV2WithDateFilter:(id)a0 scopedSearchIdentifiers:(id)a1 searchResultTypes:(unsigned long long)a2 suggestionType:(unsigned long long)a3; - (void)unbindMatchingIds; - (id)groupForLookupIdentifier:(id)a0 searchResultTypes:(unsigned long long)a1; - (void)_inqPerformBatch:(id /* block */)a0; - (void)dealloc; - (struct sqlite3 { } *)databaseConnection; - (void)addCollection:(id)a0 withCompletion:(id /* block */)a1; - (void)_executeQuery:(id)a0 disableWildcardMatchesForUserControlledCategories:(BOOL)a1 resultsHandler:(id /* block */)a2; - (struct sqlite3_stmt { } *)_inqPrepareStatement:(const char *)a0; - (long long)insertAsset:(id)a0; - (void)addAsset:(id)a0 withCompletion:(id /* block */)a1; - (void)executeStatementFromString:(id)a0 withResultEnumerationBlock:(id /* block */)a1; - (id)allGroupIds; - (void)_inqGetTokensFromString:(id)a0 category:(short)a1 tokenOutput:(struct tokenOutput_t { id x0; id x1; id x2; struct *x3; long long x4; long long x5; struct *x6; long long x7; long long x8; } *)a2; - (void)_prepareTokenOutput:(struct tokenOutput_t { id x0; id x1; id x2; struct *x3; long long x4; long long x5; struct *x6; long long x7; long long x8; } *)a0 forIndexing:(BOOL)a1; - (struct __CFSet { } *)_inqNewGroupIdsMatchingString:(id)a0 textIsSearchable:(BOOL)a1; - (void)groupsForCollectionIds:(struct __CFArray { } *)a0 completion:(id /* block */)a1; - (unsigned long long)_inqUpdateGroupForText:(id)a0 identifier:(id)a1 category:(short)a2 owningGroupId:(unsigned long long)a3; - (void)removeAssetWithUUID:(id)a0 completion:(id /* block */)a1; - (void)removeCollectionsWithUUIDs:(id)a0 completion:(id /* block */)a1; - (id)groupArraysFromGroupIdSets:(id)a0 dateFilter:(id)a1 searchResultTypes:(unsigned long long)a2 progressBlock:(id /* block */)a3; - (void)_inqNewGroupIdsForCollectionIdsV2:(struct __CFArray { } *)a0 completion:(id /* block */)a1; - (id)_inqGroupWithFilenameStatement:(struct sqlite3_stmt { } *)a0 dateFilter:(id)a1 excludingGroupId:(unsigned long long)a2 searchResultTypes:(unsigned long long)a3; - (id)newQueryWithSearchTextV2:(id)a0 queryTokens:(id)a1 scopedSearchIdentifiers:(id)a2 searchResultTypes:(unsigned long long)a3 searchSuggestionType:(unsigned long long)a4 useWildcardSearchText:(BOOL)a5 enableExactMatchPrioritization:(BOOL)a6 libraryScope:(unsigned long long)a7 suggestionLimit:(unsigned long long)a8; - (struct __CFArray { } *)_inqNewAssetIdsForGroupId:(unsigned long long)a0 dateFilter:(id)a1; - (id)collectionUUIDsForCollectionIDs:(struct __CFArray { } *)a0; - (id)groupIdsInPrefixTable; - (id)allCollectionUUIDsWithCollectionType:(unsigned long long)a0; - (void)addAssets:(id)a0 withCompletion:(id /* block */)a1; - (unsigned long long)_inqAssetIdWithAsset:(id)a0; - (void)executeQueryV2:(id)a0 userQuery:(id)a1 resultsHandler:(id /* block */)a2; - (long long)insertGroup:(id)a0; - (void)_sortedSearchIndexRowIdsFromUUIDs:(id)a0 searchResultType:(unsigned long long)a1 completion:(id /* block */)a2; - (void)addCollections:(id)a0 withCompletion:(id /* block */)a1; - (id)dumpGroupsInfoWithIndexCategories:(id)a0; - (id)_inqNumberOfCollectionsByGroupIdMatchingGroupsWithIds:(id)a0; - (struct __CFDictionary { } *)_inqPrepareStatementsForOptions:(long long)a0 tokenizerName:(id)a1; - (double)_scoreForUserCategory:(unsigned long long)a0; - (id)groupWithMatchingGroupId:(unsigned long long)a0 dateFilter:(id)a1 searchResultTypes:(unsigned long long)a2; - (struct __CFSet { } *)_inqNewGroupIdsForCollectionId:(unsigned long long)a0; - (void)executeQuery:(id)a0 disableWildcardMatchesForUserControlledCategories:(BOOL)a1 resultsHandler:(id /* block */)a2; - (struct __CFSet { } *)_inqNewGroupIdsForCollectionIds:(struct __CFSet { } *)a0; - (id)dumpGroupsInfoForAssetUUID:(id)a0 indexCategories:(id)a1; - (id)assetUUIDByAssetIdWithAssetIds:(id)a0; - (id)initWithPathManager:(id)a0 options:(long long)a1; - (unsigned long long)_inqAssetIdForUUID:(id)a0 uuid_0:(unsigned long long *)a1 uuid_1:(unsigned long long *)a2; - (id)_inqAssetUUIDByAssetIdWithAssetIds:(id)a0; - (void)linkCollectionWithId:(long long)a0 toGroupWithId:(long long)a1; - (unsigned long long)_inqCollectionIdWithCollection:(id)a0; - (void)executeStatementFromString:(id)a0; - (id)_inqAssetIdsByGroupIdForAssetIds:(id)a0; - (id)_inqCollectionResultsForCollectionIds:(struct __CFArray { } *)a0 range:(struct _NSRange { unsigned long long x0; unsigned long long x1; })a1; - (id)initForTestingWithOptions:(long long)a0; - (id)groupResultWithDateFilter:(id)a0 datedTokens:(id)a1; - (id)_inqGroupWithStatement:(struct sqlite3_stmt { } *)a0 dateFilter:(id)a1 includeObjects:(BOOL)a2 searchResultTypes:(unsigned long long)a3; - (id)_inqNewSynonymTextsByOwningGroupIdWithGroupIds:(struct __CFSet { } *)a0; - (id)_inqDequeueGroupObjectWithId:(unsigned long long)a0 isCachedGroup:(BOOL *)a1; - (id)_inqCollectionIdsByGroupIdForCollectionIds:(id)a0; - (unsigned long long)_inqUpdateGroupForText:(id)a0 normalizedText:(id)a1 identifier:(id)a2 category:(short)a3 owningGroupId:(unsigned long long)a4 shouldUpdateOwningGroupId:(BOOL)a5; - (void)_inqExecutePreparedStatement:(struct sqlite3_stmt { } *)a0 withStatementBlock:(id /* block */)a1; - (void)fetchAssetUUIDsForAssetIDs:(struct __CFArray { } *)a0 creationDateSorted:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)linkAssetWithId:(long long)a0 toGroupWithId:(long long)a1; - (id)allCollections; - (BOOL)_prepareSearchIndexAtPath:(id)a0 options:(long long)a1; - (void)group:(id)a0 fetchOwningContentString:(BOOL)a1 assetIdRange:(struct _NSRange { unsigned long long x0; unsigned long long x1; })a2 collectionIdRange:(struct _NSRange { unsigned long long x0; unsigned long long x1; })a3 completionHandler:(id /* block */)a4; - (void)dropDatabaseWithCompletion:(id /* block */)a0; - (void)assetIdsFromUUIDs:(id)a0 completion:(id /* block */)a1; - (void)_executeQueryV2:(id)a0 resultsHandler:(id /* block */)a1; - (void)_inqUpdateGATableWithGroupId:(unsigned long long)a0 assetId:(unsigned long long)a1; - (void)collectionIdsFromUUIDs:(id)a0 completion:(id /* block */)a1; - (BOOL)isDatabaseCorrupted; - (void)deleteGroupsWithGraphCollectionsForPersonUUIDs:(id)a0 withCompletion:(id /* block */)a1; - (id)suggestionWhitelistedScenes; - (id)dumpLookupStringsWithIndexCategories:(id)a0; - (unsigned long long)_inqAssetIdForUUID:(id)a0; - (id)_inqGroupWithStatement:(struct sqlite3_stmt { } *)a0 dateFilter:(id)a1 includeObjects:(BOOL)a2 isFilenameStatement:(BOOL)a3 excludingGroupId:(unsigned long long)a4 searchResultTypes:(unsigned long long)a5; - (unsigned long long)_inqNumberOfCollectionsMatchingGroupWithId:(unsigned long long)a0; - (unsigned long long)updateGroupForText:(id)a0 identifier:(id)a1 category:(short)a2 owningGroupId:(unsigned long long)a3; - (struct __CFSet { } *)_inqNewGroupIdsMatchingString:(id)a0 categories:(id)a1 textIsSearchable:(BOOL)a2; - (id)newQueryWithSearchText:(id)a0 queryTokens:(id)a1 useWildcardSearchText:(BOOL)a2 libraryScope:(unsigned long long)a3; - (void)unprepareMatchingIds; - (unsigned long long)assetCountForLookupIdentifier:(id)a0; - (long long)insertCollection:(id)a0; - (void)executeStatement:(id)a0; - (id)allGroupsForEntityDonation; - (struct __CFArray { } *)_inqNewCollectionIdsForGroupId:(unsigned long long)a0 dateFilter:(id)a1; - (void)_inqRecycleGroups; - (id)_inqFilenameGroupsWithMatchingGroupIds:(struct __CFSet { } *)a0 dateFilter:(id)a1 searchResultTypes:(unsigned long long)a2 matchingPredicateBlock:(id /* block */)a3; - (void)_inqDeleteGroupsWithGraphCollectionsForPersonUUID:(id)a0; - (id)_inqGroupWithMatchingGroupId:(unsigned long long)a0 dateFilter:(id)a1 searchResultTypes:(unsigned long long)a2; - (void)_removeUUIDs:(id)a0 objectType:(unsigned long long)a1 completion:(id /* block */)a2; - (void)_inqRemoveUUID:(id)a0 objectType:(unsigned long long)a1 isInBatch:(BOOL)a2; - (struct __CFSet { } *)_inqNewGroupIdsForAssetId:(unsigned long long)a0; - (long long)lastInsertedRowID; - (void)groupsForAssetIds:(struct __CFArray { } *)a0 completion:(id /* block */)a1; - (void)bindMatchingIds:(struct __CFSet { } *)a0; - (void).cxx_destruct; - (id)_inqOwningContentStringForGroupResult:(id)a0; - (struct __CFArray { } *)_inqNewAssetIdsWithDateFilter:(id)a0; - (unsigned long long)_inqCollectionIdForUUID:(id)a0; - (unsigned long long)_inqCollectionIdForUUID:(id)a0 uuid_0:(unsigned long long *)a1 uuid_1:(unsigned long long *)a2; - (void)_inqRemoveUnusedGroups; - (void)executeStatement:(id)a0 withResultEnumerationBlock:(id /* block */)a1; - (void)prepareForNumberOfMatchingIds:(unsigned long long)a0; - (void)_processNextKeywordSuggestionsForQuery:(id)a0 groupResults:(id)a1 allowIdentifiers:(BOOL)a2; - (id)_inqNumberOfAssetsByGroupIdMatchingGroupsWithIds:(id)a0; - (id)_inqGroupResultWithDateFilter:(id)a0 datedTokens:(id)a1; - (id)_generateGroupsInfoDictionaryFromText:(const char *)a0 identifier:(const char *)a1 category:(short)a2 groupId:(unsigned long long)a3; - (id)meNodeIdentifier; - (void)_finalizeEverything; - (id)_inqAssetUUIDsForAssetIds:(struct __CFArray { } *)a0 range:(struct _NSRange { unsigned long long x0; unsigned long long x1; })a1 creationDateSorted:(BOOL)a2; - (void)updateSearchMetadata; - (id)wordEmbeddingMatchesForToken:(id)a0; - (unsigned long long)_inqGroupIdForCategory:(short)a0 owningGroupId:(unsigned long long)a1 contentString:(id)a2 normalizedString:(id)a3 identifier:(id)a4 insertIfNeeded:(BOOL)a5 tokenOutput:(const struct tokenOutput_t { id x0; id x1; id x2; struct *x3; long long x4; long long x5; struct *x6; long long x7; long long x8; } *)a6 shouldUpdateOwningGroupId:(BOOL)a7; - (id)_inqAssetUUIDsForAssetIds:(struct __CFSet { } *)a0; - (unsigned long long)_inqNumberOfAssetsMatchingGroupWithId:(unsigned long long)a0; - (BOOL)assetExistsWithUUID:(id)a0; - (id)assetUUIDsForAssetIDs:(struct __CFArray { } *)a0; - (void)_ingRebuildPrefixTableIfNeeded; - (void)removeAssetsWithUUIDs:(id)a0 completion:(id /* block */)a1; - (void)removeUnusedGroups; - (id)_inqNonFilenameGroupsWithMatchingGroupIds:(struct __CFSet { } *)a0 dateFilter:(id)a1 includeObjects:(BOOL)a2 searchResultTypes:(unsigned long long)a3 matchingPredicateBlock:(id /* block */)a4; - (void)performSyncOnDBQueue:(id /* block */)a0; - (struct __CFSet { } *)groupIdsMatchingString:(id)a0 categories:(id)a1 textIsSearchable:(BOOL)a2; - (void)bindMatchingIds:(const long long *)a0 numberOfMatchingIds:(unsigned long long)a1; - (void)_inqPrepareAndExecuteStatement:(const char *)a0; - (void)_executeQueryV2:(id)a0 userQuery:(id)a1 resultsHandler:(id /* block */)a2; - (id)_inqGroupArraysFromGroupIdSets:(id)a0 dateFilter:(id)a1 searchResultTypes:(unsigned long long)a2 progressBlock:(id /* block */)a3; - (struct __CFSet { } *)_inqNewGroupIdsForAssetIds:(struct __CFSet { } *)a0; - (void)_inqUpdateGCTableWithGroupId:(unsigned long long)a0 collectionId:(unsigned long long)a1; - (BOOL)_inqVerifyTablesExistInDatabase; - (void)_inqExecutePreparedStatement:(struct sqlite3_stmt { } *)a0 allowError:(int)a1 withStatementBlock:(id /* block */)a2; - (id)_inqSelectAllGroupsForEntityDonation; - (id)statementFromString:(id)a0; - (id)collectionResultByCollectionIdWithCollectionIds:(id)a0; - (id)_inqContentStringForGroupId:(unsigned long long)a0; - (void)removeCollectionWithUUID:(id)a0 completion:(id /* block */)a1; - (id)_inqGroupsWithMatchingGroupIds:(struct __CFSet { } *)a0 dateFilter:(id)a1 includeObjects:(BOOL)a2 searchResultTypes:(unsigned long long)a3 matchingPredicateBlock:(id /* block */)a4; - (void)bindMatchingIds:(struct __CFArray { } *)a0 range:(struct _NSRange { unsigned long long x0; unsigned long long x1; })a1; - (struct __CFSet { } *)_inqNewGroupIdsWithCategories:(id)a0; - (void)_inqAsync:(id /* block */)a0; - (id)_inqCollectionResultByCollectionIdWithCollectionIds:(id)a0; - (void)executeQueryV2:(id)a0 resultsHandler:(id /* block */)a1; - (id)allAssetUUIDsForGroupsWithCategories:(id)a0; @end