{"_id":"@bishen/tauri-plugin-pg-sync","_rev":"11-8f932031b40943a6208b7dfb66864402","name":"@bishen/tauri-plugin-pg-sync","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.0":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.0","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.0","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"2e6c1aae0ae8ae6b9ba1ab3f53d622193d963a7c","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.0.tgz","fileCount":6,"integrity":"sha512-gUYCZNY//UIpJTkEFkZk6ey7Wd2MEJ55vULf5ALbeHz2lyNXfrdOAxW9+ASkNVMMvKj77av33i6cb/Ee7yMthQ==","signatures":[{"sig":"MEQCIBs3QkGUH2KeJ5OO4EduVu0J6Uv6GvuooQN3YtXjCSC4AiBTmXBX/HnCK/19iXcdzOCliQJgko6pQn+lxw6E9IgI/Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51729},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d28635f3ee89fbd2739e07b09f050d8c021853d7","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.0_1768542301267_0.7343656977428377","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.1","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.1","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"8c90347c99aa8c96bb2660d7482001185aa08c1a","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.1.tgz","fileCount":7,"integrity":"sha512-pFnHbB7S/Sq7ZCpGXHjkyU6D7rkmcpV5zl0EbZ4fPHSofhzo9ffOlUvrkFHSQ54ojRhFk+cQtgnrKJrC/p3DWQ==","signatures":[{"sig":"MEQCIGmkeJ66d3aL90+aQ2CydpR4+zhe8eaIkJWyZnsckosEAiBB2JuS9hjU26+r2zoOUzT0htvSjQu5dcm5OxuTfBU+HA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55973},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d28635f3ee89fbd2739e07b09f050d8c021853d7","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.1_1768542462897_0.058934335609234445","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.2","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.2","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"2e63a906658e088ec922291f14f48cc2e2408dda","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.2.tgz","fileCount":7,"integrity":"sha512-frFXiFkxDw05cp0UcGojpg6jq/7VcTGN7gVyKTJKQZFOrQ/wXTkTRtc1ZqhEt/6nt24fqZEJ2euozSzFV3GQXA==","signatures":[{"sig":"MEUCIQDMPCPhXYTppYciFudIiqwlCvGqW7ft6L9Qt5JCoobzNAIgcU/z401cs2+woT0+3AZWA0xoHC26KR5LyAR4l11zqqk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56993},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3eb4db06f0601ea0239cd4cee495006c9efc3ee8","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.2_1768543674135_0.040411085665032376","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.3","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.3","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"add4655954bfbe3f4bfd9acb7f51576c9bd7ae09","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.3.tgz","fileCount":7,"integrity":"sha512-10aaCQQk9opju8FvunqwGQx8nl89cBu3s72gd49SUAtx3GdunhPRlX2LdEfkJR2xUij9VBWwxeXC/fcJb6VJlQ==","signatures":[{"sig":"MEYCIQD26cbtmvW8Q6zXjnV5uvrPdAVoR//91uqlqlyPeX+41wIhAMJzqA3dXVIggFxtWTo1rZo8GQMUbBPsNWRKhdjRpXpR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":107936},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3eb4db06f0601ea0239cd4cee495006c9efc3ee8","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.3_1768546138306_0.6410137800574236","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.5","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.5","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"28b1a4407b1fbc235f95a6eac5534cfb89b4f204","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.5.tgz","fileCount":7,"integrity":"sha512-FpJHZ3gG31fzOQLfaLkqrHyv2xNIgcqCQfIETJzUIM7ALQVIiGP+mSq0t+TTilaJjh9ERtomMoQMIkdQJbx9EA==","signatures":[{"sig":"MEQCIBL/Js3AyS1rl7VBdJEkMzeggebd8qi4VlpIEo8oBVjzAiAomISIKSDOxo5Wh8ddk00XinlNTP0LMl8JOFp9P6KQQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":127209},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a74e127db79e74c373a25e2b222fa90451799df2","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.5_1768571566521_0.8000050253010704","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.6","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.6","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"e1a781891546ab3c9e6782758af424acb3cee428","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.6.tgz","fileCount":7,"integrity":"sha512-KSDDM+2rAkxvrzUUOgASQYs+8V9fz+pe32ri0IuzjoAnytZJ+qiaANFbj8WCXdZxfpvaeybxPNQjFikYta6u8w==","signatures":[{"sig":"MEQCIG21mI6WkgCu4BMNttKxQNoiqFp6IDhNCglsLLuiT/81AiAmMjQrd3XMB9lcNvB8deTJnIBhQWxEIJ+uBuzblRoInw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130722},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6d034096acf97f26ede44add732a9067762770b","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.6_1768614910424_0.9653465139053736","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.7","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.7","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"ea7947694e1db7894ad7d8397dc971d60804c835","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.7.tgz","fileCount":7,"integrity":"sha512-RaPSw84cvdvMZzTaccDEQS7dnsaRYVFKo+TbuLmlSciX5YiM1lXOImhXGqR/Ny02PguKzTfbm6wLNWwOuKNwdw==","signatures":[{"sig":"MEUCIFrAo/HJ+wSw+UQRmyDx7zqJDquawb1qGK2MruMNFdbYAiEAgAPaHuF06iUAPtuRH3MPCCtDTP2KaxS+1ttad2MsObE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130722},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6d034096acf97f26ede44add732a9067762770b","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.7_1768617578482_0.3840319674605117","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.8","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.8","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"0eb086920cd2c45fd1cf103dc0835a7b3ffa2888","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.8.tgz","fileCount":7,"integrity":"sha512-q/DKSsHd6qv1tj5bQB/J8pGxStXNGAD0WYgSTA1itWYGmGgxh+sO/NHL8VFTF76TLuUlSnkRb4T0ldUrSF//zQ==","signatures":[{"sig":"MEUCIQCNbPftndy42j+SP2muPFIq35EoolwWTIPHxh5jDvUGCQIgLVLqpCLTbSgO2eZ/kdv+jsnbF3DKJL5GPeDKC0NklWw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130722},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6d034096acf97f26ede44add732a9067762770b","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.8_1768618831539_0.7424160561340003","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.9","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.9","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"79899f3045e3e8d0f9c9522c0a9ba86b8cb61846","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.9.tgz","fileCount":7,"integrity":"sha512-uHDG1BI6XX+QZbUaOmQgTe8cN5VxTSLDLEfc76p4FCm9vr0dqSkcgw2qyuQKbAOmVeyCnlxD3qeEAsKU4AxzYA==","signatures":[{"sig":"MEUCIQCfMEcmRvpa2HGqUN+4RSVtf/eo+oNEKAIFiKqX/d0BqAIgHO2Q30QG3tsrVMNJLtWUTiGntr5sdaO9ehgqEZE2ues=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130722},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6d034096acf97f26ede44add732a9067762770b","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.9_1768619359568_0.25272404068086174","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.10","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","_id":"@bishen/tauri-plugin-pg-sync@0.1.10","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"dist":{"shasum":"8ee2207495129a2de514a1acab3ed35e23b0d6e1","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.10.tgz","fileCount":7,"integrity":"sha512-mKNanOYxk9e6LsI+uccPoaxlC77YfdCWbLwn4Qz1nefvSlAAmjTqJ6BLqCPpBJVDALhZCqHttB+dzmY1Ut7V9A==","signatures":[{"sig":"MEUCIHc09+7wuzHXNMn9bEfzmLqKvaqFpe+PesiwX5KSIsMwAiEA77wO0wpX5SUhwY4L3YTECL/jPyAaGXlGohjgxNkMBns=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130723},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6d034096acf97f26ede44add732a9067762770b","scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"repository":{"url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git","type":"git"},"_npmVersion":"10.9.2","description":"Offline-first PostgreSQL sync plugin for Tauri apps","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@tauri-apps/api":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.6.2","rollup":"^4.9.0","typescript":"^5.3.3","@rollup/plugin-typescript":"^11.1.5"},"_npmOperationalInternal":{"tmp":"tmp/tauri-plugin-pg-sync_0.1.10_1768620070486_0.30243601423543764","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@bishen/tauri-plugin-pg-sync","version":"0.1.11","description":"Offline-first PostgreSQL sync plugin for Tauri apps","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"scripts":{"build":"rollup -c","prepublishOnly":"npm run build"},"dependencies":{"@tauri-apps/api":"^2.0.0"},"devDependencies":{"@rollup/plugin-typescript":"^11.1.5","rollup":"^4.9.0","tslib":"^2.6.2","typescript":"^5.3.3"},"repository":{"type":"git","url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git"},"keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"author":{"name":"BiShen","email":"bishen@live.com"},"packageManager":"pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0","_id":"@bishen/tauri-plugin-pg-sync@0.1.11","gitHead":"e6d034096acf97f26ede44add732a9067762770b","bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-J5FZ8U0SQXU/I1zDcbKue/yOhjZjDf7niHEJ6QSOzVBaW5N1xpi4InDGU7g1JPSNtnbFMVmNngc7Tbsu9KS1UQ==","shasum":"bffe787ff7079e6d4028509390f3f33e19e95fc8","tarball":"https://registry.npmjs.org/@bishen/tauri-plugin-pg-sync/-/tauri-plugin-pg-sync-0.1.11.tgz","fileCount":7,"unpackedSize":130895,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGXcJAXFrFAAzXqL1R0mNz+IOu1lIgZt6UjIdwszQUKeAiEAkD2IOvEYwdFIKpiJPLg4T5ntoPxjMlp9e4qBzQmXfvw="}]},"_npmUser":{"name":"bishen","email":"kvxv@sina.com"},"directories":{},"maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tauri-plugin-pg-sync_0.1.11_1768624072058_0.6714966248810721"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-16T05:45:01.168Z","modified":"2026-01-17T04:27:52.332Z","0.1.0":"2026-01-16T05:45:01.452Z","0.1.1":"2026-01-16T05:47:43.092Z","0.1.2":"2026-01-16T06:07:54.282Z","0.1.3":"2026-01-16T06:48:58.478Z","0.1.5":"2026-01-16T13:52:46.719Z","0.1.6":"2026-01-17T01:55:10.580Z","0.1.7":"2026-01-17T02:39:38.630Z","0.1.8":"2026-01-17T03:00:31.684Z","0.1.9":"2026-01-17T03:09:19.724Z","0.1.10":"2026-01-17T03:21:10.637Z","0.1.11":"2026-01-17T04:27:52.200Z"},"bugs":{"url":"https://github.com/bishen/tauri-plugin-pg-sync/issues"},"author":{"name":"BiShen","email":"bishen@live.com"},"license":"MIT","homepage":"https://github.com/bishen/tauri-plugin-pg-sync#readme","keywords":["tauri","plugin","postgresql","sync","offline-first","sqlite"],"repository":{"type":"git","url":"git+https://github.com/bishen/tauri-plugin-pg-sync.git"},"description":"Offline-first PostgreSQL sync plugin for Tauri apps","maintainers":[{"name":"bishen","email":"kvxv@sina.com"}],"readme":"# @bishen/tauri-plugin-pg-sync\r\n\r\n[![npm](https://img.shields.io/npm/v/@bishen/tauri-plugin-pg-sync.svg)](https://www.npmjs.com/package/@bishen/tauri-plugin-pg-sync)\r\n[![crates.io](https://img.shields.io/crates/v/tauri-plugin-pg-sync.svg)](https://crates.io/crates/tauri-plugin-pg-sync)\r\n\r\nAn offline-first PostgreSQL sync plugin for Tauri apps.\r\n\r\n## Features\r\n\r\n- **Offline-First**: Local SQLite database, fully functional offline\r\n- **PostgreSQL Sync**: Automatic synchronization with remote PostgreSQL\r\n- **Conflict Resolution**: HLC (Hybrid Logical Clock) based conflict resolution\r\n- **Cross-Platform**: Windows, macOS, Linux, Android, iOS\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @bishen/tauri-plugin-pg-sync\r\n# or\r\nyarn add @bishen/tauri-plugin-pg-sync\r\n# or\r\npnpm add @bishen/tauri-plugin-pg-sync\r\n```\r\n\r\nAlso add the Rust plugin to your `src-tauri/Cargo.toml`:\r\n\r\n```toml\r\n[dependencies]\r\ntauri-plugin-pg-sync = \"0.1\"\r\n```\r\n\r\n## Setup\r\n\r\nRegister the plugin in your Tauri app:\r\n\r\n```rust\r\n// src-tauri/src/main.rs\r\nfn main() {\r\n    tauri::Builder::default()\r\n        .plugin(tauri_plugin_pg_sync::init())\r\n        .run(tauri::generate_context!())\r\n        .expect(\"error while running tauri application\");\r\n}\r\n```\r\n\r\n## Documentation\r\n\r\n- [API Reference](https://github.com/bishen/tauri-plugin-pg-sync/blob/master/API.md) - Complete API documentation\r\n- [Server Setup](https://github.com/bishen/tauri-plugin-pg-sync/blob/master/SERVER_SETUP.md) - PostgreSQL configuration\r\n- [Type Mapping](https://github.com/bishen/tauri-plugin-pg-sync/blob/master/TYPE_MAPPING.md) - SQLite ↔ PostgreSQL types\r\n\r\n## Usage\r\n\r\n### Smart Initialization (Recommended)\r\n\r\n```typescript\r\nimport { smartInit, table, sync } from '@bishen/tauri-plugin-pg-sync';\r\n\r\n// Smart init: auto-detect local/remote state\r\nconst result = await smartInit({\r\n  remoteUrl: 'postgres://user:pass@host:5432/db'\r\n});\r\n\r\nconsole.log('Mode:', result.mode);\r\n// 'local_only' | 'offline' | 'pulled_from_remote' | 'pushed_to_remote' | 'synced'\r\n\r\nconst users = table('users', {\r\n  columns: [['name', 'TEXT'], ['age', 'INTEGER']]\r\n});\r\n\r\nawait users.insert({ name: 'Alice', age: 25 });\r\nawait sync.now();\r\n```\r\n\r\n### Smart Sync Manager\r\n\r\n```typescript\r\nimport { syncManager, smartInit } from '@bishen/tauri-plugin-pg-sync';\r\n\r\nawait smartInit({ remoteUrl: 'postgres://...' });\r\n\r\nawait syncManager.start({\r\n  pollInterval: 30000,\r\n  enableRealtime: true,\r\n  onSync: (result) => {\r\n    if (result.pulled > 0) refreshUI();\r\n  },\r\n  onStateChange: ({ mode }) => {\r\n    console.log('State:', mode); // 'offline' | 'online' | 'syncing' | 'error'\r\n  }\r\n});\r\n\r\nsyncManager.stop();\r\n```\r\n\r\n### Basic Usage\r\n\r\n```typescript\r\nimport {\r\n  initDatabase,\r\n  connectRemote,\r\n  ensureTable,\r\n  insert,\r\n  findAll,\r\n  findWhere,\r\n  update,\r\n  delete as deleteRecord,\r\n  syncNow,\r\n  isOnline,\r\n} from '@bishen/tauri-plugin-pg-sync';\r\n\r\n// Initialize local database\r\nconst nodeId = await initDatabase();\r\n\r\n// Connect to remote PostgreSQL (optional)\r\nawait connectRemote('postgres://user:pass@host:5432/db');\r\n\r\n// Create a table\r\nawait ensureTable('users', [\r\n  { name: 'name', type: 'TEXT' },\r\n  { name: 'email', type: 'TEXT' },\r\n  { name: 'age', type: 'INTEGER' },\r\n]);\r\n\r\n// Insert data\r\nconst id = await insert('users', {\r\n  name: 'Alice',\r\n  email: 'alice@example.com',\r\n  age: 30,\r\n});\r\n\r\n// Query data\r\nconst allUsers = await findAll('users');\r\nconst adults = await findWhere('users', 'age >= 18');\r\n\r\n// Update data\r\nawait update('users', id, { age: 31 });\r\n\r\n// Delete data (soft delete)\r\nawait deleteRecord('users', id);\r\n\r\n// Sync with remote\r\nconst result = await syncNow();\r\nconsole.log(`Pushed: ${result.pushed}, Pulled: ${result.pulled}`);\r\n\r\n// Check online status\r\nconst online = await isOnline();\r\n```\r\n\r\n## API Reference\r\n\r\n### Database Initialization\r\n\r\n| Function | Description |\r\n|----------|-------------|\r\n| `smartInit(options)` | Smart initialization (Recommended) |\r\n| `initDatabase()` | Initialize local SQLite database |\r\n| `initDatabaseMobile(path)` | Initialize for mobile with custom path |\r\n| `getDbPath()` | Get current database file path |\r\n\r\n### Remote Connection\r\n\r\n| Function | Description |\r\n|----------|-------------|\r\n| `connectRemote(url)` | Connect to PostgreSQL |\r\n| `connectRemoteWithRetry(url, retries, delay)` | Connect with retry logic |\r\n| `disconnectRemote()` | Disconnect from remote |\r\n| `isOnline()` | Check connection status |\r\n\r\n### CRUD Operations\r\n\r\n| Function | Description |\r\n|----------|-------------|\r\n| `insert(table, data)` | Insert a record |\r\n| `insertMany(table, records)` | Batch insert |\r\n| `update(table, id, data)` | Update a record |\r\n| `updateMany(table, updates)` | Batch update |\r\n| `delete(table, id)` | Soft delete a record |\r\n| `deleteMany(table, ids)` | Batch soft delete |\r\n| `findById(table, id)` | Find by ID |\r\n| `findAll(table, options?)` | Find all records |\r\n| `findWhere(table, condition, options?)` | Find with condition |\r\n| `query(sql, params?)` | Execute raw SQL |\r\n| `count(table, condition?)` | Count records |\r\n\r\n### Sync Operations\r\n\r\n| Function | Description |\r\n|----------|-------------|\r\n| `syncNow()` | Trigger immediate sync |\r\n| `startAutoReconnect(interval)` | Start auto-reconnect |\r\n\r\n### Table Management\r\n\r\n| Function | Description |\r\n|----------|-------------|\r\n| `ensureTable(name, columns)` | Create table if not exists |\r\n| `listLocalTables()` | List local tables |\r\n| `listRemoteTables()` | List remote tables |\r\n| `getLocalSchema(table)` | Get table schema |\r\n| `pushTableSchema(table)` | Push schema to remote |\r\n| `pullTableSchema(table)` | Pull schema from remote |\r\n\r\n## License\r\n\r\nMIT © [BiShen](mailto:bishen@live.com)\r\n\r\n算金山™ (https://www.suanjinshan.com/)\r\n","readmeFilename":"README.md"}