MCPcopy Create free account

hub / github.com/Nozbe/WatermelonDB / functions

Functions970 in github.com/Nozbe/WatermelonDB

↓ 9 callersMethodexperimentalSubscribe
* Notifies `subscriber` on change in any of the passed tables. * * A single notification will be sent per `database.batch()` call. * (Current
src/Database/index.js:304
↓ 9 callersFunctionhasUnsyncedChanges
({ database }: $Exact<{ database: Database }>)
src/sync/index.js:138
↓ 9 callersFunctionmapObj
(fn: (any, string, any) => any, obj: {})
src/utils/fp/mapObj/index.js:14
↓ 9 callersFunctionmarkLocalChangesAsSynced
( db: Database, syncedLocalChanges: SyncLocalChanges, rejectedIds?: ?SyncRejectedIds, )
src/sync/impl/markAsSynced.js:50
↓ 9 callersFunctionqueryAll
()
src/adapters/__tests__/commonTests.js:227
↓ 9 callersFunctionsetRawSanitized
( rawRecord: RawRecord, columnName: ColumnName, value: any, columnSchema: ColumnSchema, )
src/RawRecord/index.js:110
↓ 9 callersFunctionsortBy
(sorter: (T) => U, list: T[])
src/utils/fp/sortBy/index.js:3
↓ 8 callersMethod__ensureNotDisposable
(debugName: string)
src/Model/index.js:472
↓ 8 callersFunctionensureSync
(value: T)
src/utils/common/ensureSync/index.js:10
↓ 8 callersFunctionexpectError
(promise)
src/Database/test.js:689
↓ 8 callersMethodget
(id: RecordId)
src/Collection/RecordCache.js:32
↓ 8 callersFunctiongetLastPulledSchemaVersion
(database: Database)
src/sync/impl/index.js:32
↓ 8 callersFunctionidenticalArrays
(left: V, right: V)
src/utils/fp/identicalArrays/index.js:3
↓ 8 callersMethodnewLog
()
src/sync/SyncLogger/index.js:28
↓ 8 callersMethodprepareDestroyPermanently
* Prepares record to be permanently destroyed * * Note: Do not use this when using Sync, as deletion will not be synced. * * Use this to b
src/Model/index.js:219
↓ 8 callersFunctionsplitEvery
(n: number, list: T[])
src/utils/fp/splitEvery/index.js:3
↓ 8 callersFunctiontest
(migrations, from, to)
src/Schema/migrations/getSyncChanges/test.js:12
↓ 8 callersFunctiontestSteps
(steps)
src/Schema/migrations/getSyncChanges/test.js:13
↓ 8 callersMethodunsafeLoadFromSync
(jsonId: number, callback: ResultCallback<any>)
src/adapters/type.js:63
↓ 8 callersMethodwithDriver
( tag: number, resolve: (any) => void, reject: (any) => void, functionName: string, action
src/adapters/sqlite/sqlite-node/DatabaseBridge.js:169
↓ 8 callersMethodwithDriver
(final int tag, final Promise promise, final ParamFunction function, String functionName)
native/android/src/main/java/com/nozbe/watermelondb/WMDatabaseBridge.java:174
↓ 7 callersFunction_valueOrColumn
(arg: Value | ColumnDescription)
src/QueryDescription/operators.js:296
↓ 7 callersFunctioncheck
(obj)
src/adapters/__tests__/commonTests.js:694
↓ 7 callersFunctioncolumnName
(name: string)
src/Schema/index.js:78
↓ 7 callersMethodexecute
(String query, Object[] args)
native/android/src/main/java/com/nozbe/watermelondb/WMDatabase.java:77
↓ 7 callersFunctionexpectError
(value)
src/adapters/__tests__/commonTests.js:855
↓ 7 callersMethodexperimentalSubscribe
* Notifies `subscriber` on every change (record creation/update/deletion) in this Collection. * * Notifications contain information about which
src/Collection/index.js:284
↓ 7 callersFunctionforEachAsync
(list: T[], action: (T) => Promise<void>)
src/utils/fp/forEachAsync/index.js:4
↓ 7 callersMethodget
(key: LocalStorageKey<ValueType>)
src/Database/LocalStorage/index.js:20
↓ 7 callersFunctionmodelQuery
(modelClass, ...conditions)
src/adapters/__tests__/helpers.js:137
↓ 7 callersFunctionnullValue
(columnSchema: ColumnSchema)
src/RawRecord/index.js:121
↓ 7 callersMethodprepareMarkAsDeleted
* Prepares record to be marked as deleted * * Use this to batch-execute multiple changes at once. * Note: Prepared changes must be executed b
src/Model/index.js:184
↓ 7 callersMethodprovideSyncJson
(id: number, syncPullResultJson: string, callback: ResultCallback<void>)
src/adapters/type.js:66
↓ 7 callersMethodqueryIds
(query: SerializedQuery, callback: ResultCallback<RecordId[]>)
src/adapters/type.js:41
↓ 7 callersMethodqueryRaw
(query: string, args: any[] = [])
src/adapters/sqlite/sqlite-node/Database.js:48
↓ 7 callersMethodrawQuery
(String sql, Object[] args)
native/android/src/main/java/com/nozbe/watermelondb/WMDatabase.java:89
↓ 7 callersMethodremove
(key: LocalStorageKey<any>)
src/Database/LocalStorage/index.js:48
↓ 7 callersMethodset
(key: LocalStorageKey<ValueType>, value: ValueType)
src/Database/LocalStorage/index.js:42
↓ 6 callersMethod__logVerbose
(debugName: string)
src/Model/index.js:483
↓ 6 callersMethod_dangerouslySetRawWithoutMarkingColumnChange
(rawFieldName: ColumnName, rawValue: Value)
src/Model/index.js:450
↓ 6 callersMethod_fetchQuery
(query: Query<Record>, callback: ResultCallback<Record[]>)
src/Collection/index.js:200
↓ 6 callersFunctionaddToRawSet
(rawSet: string, value: string)
src/sync/helpers.js:6
↓ 6 callersFunctioncheck
(local, remote)
src/sync/impl/__tests__/helpers.test.js:62
↓ 6 callersFunctioncheckTaskColumn
(columnName, expectedValue)
src/adapters/__tests__/commonTests.js:1013
↓ 6 callersFunctionencodeQuery
(query: SerializedQuery, countMode: boolean = false)
src/adapters/sqlite/encodeQuery/index.js:212
↓ 6 callersMethodexecute
(query: string, args: any[] = [])
src/adapters/sqlite/sqlite-node/Database.js:40
↓ 6 callersFunctionfromArrayOrSpread
( args: any[], debugName: string, debugArgName: string, )
src/utils/fp/arrayOrSpread/index.js:14
↓ 6 callersFunctionisChangeSetEmpty
(changeset)
src/sync/impl/helpers.js:139
↓ 6 callersFunctionmakeDecorator
(decorator: (...any) => RawDecorator)
src/utils/common/makeDecorator/index.js:9
↓ 6 callersFunctionmakeMatcher
(conditions)
src/observation/encodeMatcher/test.js:12
↓ 6 callersFunctionmockQuery
(collection)
src/Collection/test.js:11
↓ 6 callersFunctionsetLastPulledAt
(database: Database, timestamp: Timestamp)
src/sync/impl/index.js:21
↓ 6 callersFunctiontest
(value, type, isOptional = false)
src/RawRecord/__tests__/test.js:181
↓ 6 callersFunctiontoPairs
(obj)
src/utils/fp/toPairs/index.js:4
↓ 6 callersMethodtransaction
(TransactionFunction function)
native/android/src/main/java/com/nozbe/watermelondb/WMDatabase.java:179
↓ 6 callersFunctionunique
(list: T[])
src/utils/fp/unique/index.js:5
↓ 6 callersFunctionupdateTask
(task, updater)
src/observation/subscribeToQueryWithColumns/test.js:20
↓ 6 callersFunctionvalues
(obj: O)
src/utils/fp/values/index.js:3
↓ 6 callersFunctionwaitForNextQuery
()
src/observation/subscribeToCount/test.js:28
↓ 6 callersFunctionwaitForNextQuery
()
src/observation/subscribeToQueryReloading/test.js:46
↓ 5 callersMethod__ensureInWriter
(debugName: string)
src/Model/index.js:479
↓ 5 callersMethod_prepareCreate
( collection: Collection<$FlowFixMe<this>>, recordBuilder: (this) => void, )
src/Model/index.js:359
↓ 5 callersFunctionadapterWithRealMigrations
(migrations)
src/adapters/__tests__/commonTests.js:50
↓ 5 callersFunctioncanEncodeMatcher
(query: QueryDescription)
src/observation/encodeMatcher/canEncode.js:7
↓ 5 callersMethodclose
()
native/android/src/main/java/com/nozbe/watermelondb/WMDatabase.java:193
↓ 5 callersFunctiondecodeQueryResult
(compressedRecords: any[])
src/adapters/sqlite/makeDispatcher/decodeQueryResult/index.js:9
↓ 5 callersFunctiondelayPromise
()
src/Database/test.js:504
↓ 5 callersFunctionencodeInsertArgs
(tableSchema: TableSchema, raw: RawRecord)
src/adapters/sqlite/encodeBatch/index.js:21
↓ 5 callersFunctionensureDecoratorUsedProperly
( columnName: ColumnName, target: Object, key: string, descriptor: Object, )
src/decorators/common.js:8
↓ 5 callersMethodexperimentalDestroyPermanently
* Permanently deletes this record and its descendants from the database * * Descendants are determined by taking Model's `has_many` (children) a
src/Model/index.js:258
↓ 5 callersMethodexperimentalMarkAsDeleted
* Marks this records and its descendants as deleted (they will be deleted permenently after sync) * * Descendants are determined by taking Model
src/Model/index.js:239
↓ 5 callersFunctionfetchDescendants
(model: Model)
src/Model/helpers.js:46
↓ 5 callersFunctionfilterObj
(predicate: (any, any, any) => any, obj: {})
src/utils/fp/filterObj/index.js:14
↓ 5 callersFunctionfixArgs
(args: any[])
src/adapters/sqlite/sqlite-node/DatabaseDriver.js:5
↓ 5 callersFunctionfn
(...args)
src/utils/fp/arrayOrSpread/test.js:5
↓ 5 callersFunctionloadFromSync
(json)
src/adapters/__tests__/commonTests.js:589
↓ 5 callersFunctionmapValue
(mapper: (T) => U, result: Result<T>)
src/utils/fp/Result/index.js:28
↓ 5 callersFunctionnoNullComparisons
(operator)
src/observation/encodeMatcher/operators.js:16
↓ 5 callersFunctionprepareTask
(tasks, name, isCompleted, position)
src/observation/subscribeToQueryWithColumns/test.js:6
↓ 5 callersFunctionqueryable
(promise)
src/adapters/__tests__/commonTests.js:747
↓ 5 callersFunctionrelation
( relationTable: TableName<any>, relationIdColumn: ColumnName, options: ?Options, )
src/decorators/relation/index.js:26
↓ 5 callersMethodremoveLocal
(key: string, callback: ResultCallback<void>)
src/adapters/type.js:81
↓ 5 callersFunctionsth
()
src/Database/test.js:733
↓ 5 callersFunctionunsafeExecuteSql
(sql: string)
src/Schema/migrations/index.js:162
↓ 5 callersFunctionwaitFor
(database)
src/Query/test.js:269
↓ 5 callersFunctionyieldLog
()
src/diagnostics/diagnoseDatabaseStructure/impl.js:18
↓ 4 callersMethod_ensureInWriter
(debugName: string)
src/Database/index.js:388
↓ 4 callersMethod_fetchCount
(query: Query<Record>, callback: ResultCallback<number>)
src/Collection/index.js:210
↓ 4 callersMethod_getChanges
()
src/Model/index.js:72
↓ 4 callersFunctionaction
()
src/Database/test.js:694
↓ 4 callersFunctionchangeSetCount
(changeset)
src/sync/impl/helpers.js:145
↓ 4 callersFunctionconditionsWithoutDeleted
(conditions: Where[])
src/QueryDescription/helpers.js:89
↓ 4 callersFunctioncreated
(obj)
src/sync/impl/__tests__/helpers.js:80
↓ 4 callersMethoddelete
(record: Record)
src/Collection/RecordCache.js:40
↓ 4 callersFunctionencodeCreateIndices
({ tables, unsafeSql }: AppSchema)
src/adapters/sqlite/encodeSchema/index.js:47
↓ 4 callersFunctionencodeDropIndices
({ tables, unsafeSql }: AppSchema)
src/adapters/sqlite/encodeSchema/index.js:55
↓ 4 callersFunctionencodeUpdateArgs
(tableSchema: TableSchema, raw: RawRecord)
src/adapters/sqlite/encodeBatch/index.js:42
↓ 4 callersFunctionformatMessages
(messages: Array<any>)
src/utils/common/logger/index.js:4
↓ 4 callersFunctiongroupBy
( predicate: (Val) => Key, )
src/utils/fp/groupBy/index.js:3
↓ 4 callersFunctiongroupOperations
(operations: BatchOperation[])
src/adapters/sqlite/encodeBatch/index.js:67
← previousnext →101–200 of 970, ranked by callers