firemelon:一种将WatermelonDB与Firestore同步的简单方法

时间:2021-05-08 22:04:58
【文件属性】:
文件名称:firemelon:一种将WatermelonDB与Firestore同步的简单方法
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-08 22:04:58
TypeScript 西瓜 在WatermelonDB和Firestore之间进行同步的一种简单方法。 安装 使用npm: $ npm install firemelon 使用纱: $ yarn add firemelon 兼容性 Firemelon可与 firebase 和 用法 import { syncFireMelon } from 'firemelon' ; async ( ) => { await syncFireMelon ( database , syncObject , firestore , sessionId , timefn ( ) ) ; } ; database :要同步的WatermelonDB数据库。 syncObject :一个对象,其中同步的集合及其选项在其中 例子: const syncObject = { // collections to s
【文件预览】:
firemelon-master
----.eslintrc(1KB)
----.babelrc(330B)
----package.json(2KB)
----.github()
--------workflows()
----.prettierrc(116B)
----jest.config.js(353B)
----src()
--------__tests__()
--------firestoreSync.ts(8KB)
--------types()
--------utils()
--------index.ts(49B)
----.npmignore(0B)
----tsconfig.json(583B)
----.gitignore(75B)
----webpack.config.js(238B)
----README.md(2KB)

网友评论