@rocicorp/zero 1.6.0-canary.11 → 1.6.0-canary.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/README.md +3 -28
  2. package/out/_virtual/{_@oxc-project_runtime@0.130.0 → _@oxc-project_runtime@0.122.0}/helpers/usingCtx.js +1 -1
  3. package/out/_virtual/_rolldown/runtime.js +1 -12
  4. package/out/analyze-query/src/analyze-cli.js.map +1 -1
  5. package/out/analyze-query/src/bin-analyze.js +1 -6
  6. package/out/analyze-query/src/bin-analyze.js.map +1 -1
  7. package/out/analyze-query/src/bin-transform.js.map +1 -1
  8. package/out/ast-to-zql/src/ast-to-zql.js.map +1 -1
  9. package/out/ast-to-zql/src/bin.js.map +1 -1
  10. package/out/ast-to-zql/src/format.js.map +1 -1
  11. package/out/datadog/src/datadog-log-sink.js.map +1 -1
  12. package/out/otel/src/enabled.js.map +1 -1
  13. package/out/otel/src/log-options.js.map +1 -1
  14. package/out/otel/src/maybe-time.js.map +1 -1
  15. package/out/otel/src/span.js.map +1 -1
  16. package/out/replicache/src/async-iterable-to-array.js.map +1 -1
  17. package/out/replicache/src/bg-interval.js.map +1 -1
  18. package/out/replicache/src/btree/diff.js.map +1 -1
  19. package/out/replicache/src/btree/node.js.map +1 -1
  20. package/out/replicache/src/btree/read.js.map +1 -1
  21. package/out/replicache/src/btree/splice.js.map +1 -1
  22. package/out/replicache/src/btree/write.js +3 -6
  23. package/out/replicache/src/btree/write.js.map +1 -1
  24. package/out/replicache/src/call-default-fetch.js.map +1 -1
  25. package/out/replicache/src/connection-loop-delegates.js.map +1 -1
  26. package/out/replicache/src/connection-loop.js.map +1 -1
  27. package/out/replicache/src/cookies.js.map +1 -1
  28. package/out/replicache/src/dag/chunk.js.map +1 -1
  29. package/out/replicache/src/dag/gc.js.map +1 -1
  30. package/out/replicache/src/dag/key.js.map +1 -1
  31. package/out/replicache/src/dag/lazy-store.js.map +1 -1
  32. package/out/replicache/src/dag/store-impl.js.map +1 -1
  33. package/out/replicache/src/dag/store.js.map +1 -1
  34. package/out/replicache/src/dag/visitor.js.map +1 -1
  35. package/out/replicache/src/db/commit.js.map +1 -1
  36. package/out/replicache/src/db/index.js.map +1 -1
  37. package/out/replicache/src/db/read.js.map +1 -1
  38. package/out/replicache/src/db/rebase.js.map +1 -1
  39. package/out/replicache/src/db/write.js.map +1 -1
  40. package/out/replicache/src/deleted-clients.js.map +1 -1
  41. package/out/replicache/src/error-responses.js.map +1 -1
  42. package/out/replicache/src/frozen-json.js.map +1 -1
  43. package/out/replicache/src/get-default-puller.js.map +1 -1
  44. package/out/replicache/src/get-default-pusher.js.map +1 -1
  45. package/out/replicache/src/get-kv-store-provider.js.map +1 -1
  46. package/out/replicache/src/hash.js.map +1 -1
  47. package/out/replicache/src/http-request-info.js.map +1 -1
  48. package/out/replicache/src/index-defs.js.map +1 -1
  49. package/out/replicache/src/kv/expo-sqlite/store.js.map +1 -1
  50. package/out/replicache/src/kv/idb-store-with-mem-fallback.js.map +1 -1
  51. package/out/replicache/src/kv/idb-store.js.map +1 -1
  52. package/out/replicache/src/kv/mem-store.js.map +1 -1
  53. package/out/replicache/src/kv/op-sqlite/store.js.map +1 -1
  54. package/out/replicache/src/kv/read-impl.js.map +1 -1
  55. package/out/replicache/src/kv/sqlite-store.d.ts.map +1 -1
  56. package/out/replicache/src/kv/sqlite-store.js +1 -4
  57. package/out/replicache/src/kv/sqlite-store.js.map +1 -1
  58. package/out/replicache/src/kv/throw-if-closed.js.map +1 -1
  59. package/out/replicache/src/kv/write-impl-base.js.map +1 -1
  60. package/out/replicache/src/kv/write-impl.js.map +1 -1
  61. package/out/replicache/src/lazy.js.map +1 -1
  62. package/out/replicache/src/log-options.js.map +1 -1
  63. package/out/replicache/src/make-idb-name.js.map +1 -1
  64. package/out/replicache/src/new-client-channel.js.map +1 -1
  65. package/out/replicache/src/on-persist-channel.js.map +1 -1
  66. package/out/replicache/src/patch-operation.js.map +1 -1
  67. package/out/replicache/src/pending-mutations.js.map +1 -1
  68. package/out/replicache/src/persist/client-gc.js.map +1 -1
  69. package/out/replicache/src/persist/client-group-gc.js.map +1 -1
  70. package/out/replicache/src/persist/client-groups.js +0 -40
  71. package/out/replicache/src/persist/client-groups.js.map +1 -1
  72. package/out/replicache/src/persist/clients.js +0 -28
  73. package/out/replicache/src/persist/clients.js.map +1 -1
  74. package/out/replicache/src/persist/collect-idb-databases.js.map +1 -1
  75. package/out/replicache/src/persist/gather-mem-only-visitor.js.map +1 -1
  76. package/out/replicache/src/persist/gather-not-cached-visitor.js.map +1 -1
  77. package/out/replicache/src/persist/heartbeat.js.map +1 -1
  78. package/out/replicache/src/persist/idb-databases-store-db-name.js.map +1 -1
  79. package/out/replicache/src/persist/idb-databases-store.js.map +1 -1
  80. package/out/replicache/src/persist/make-client-id.js.map +1 -1
  81. package/out/replicache/src/persist/persist.js.map +1 -1
  82. package/out/replicache/src/persist/refresh.js.map +1 -1
  83. package/out/replicache/src/process-scheduler.js.map +1 -1
  84. package/out/replicache/src/pusher.js.map +1 -1
  85. package/out/replicache/src/replicache-impl.js.map +1 -1
  86. package/out/replicache/src/report-error.js.map +1 -1
  87. package/out/replicache/src/request-idle.js.map +1 -1
  88. package/out/replicache/src/scan-iterator.js.map +1 -1
  89. package/out/replicache/src/scan-options.js.map +1 -1
  90. package/out/replicache/src/set-interval-with-signal.js.map +1 -1
  91. package/out/replicache/src/subscriptions.js.map +1 -1
  92. package/out/replicache/src/sync/diff.js.map +1 -1
  93. package/out/replicache/src/sync/ids.js.map +1 -1
  94. package/out/replicache/src/sync/patch.js.map +1 -1
  95. package/out/replicache/src/sync/pull-error.js.map +1 -1
  96. package/out/replicache/src/sync/pull.js.map +1 -1
  97. package/out/replicache/src/sync/push.js.map +1 -1
  98. package/out/replicache/src/sync/request-id.js.map +1 -1
  99. package/out/replicache/src/to-error.js.map +1 -1
  100. package/out/replicache/src/transaction-closed-error.js.map +1 -1
  101. package/out/replicache/src/transactions.js.map +1 -1
  102. package/out/replicache/src/with-transactions.js.map +1 -1
  103. package/out/shared/src/abort-error.js.map +1 -1
  104. package/out/shared/src/arrays.js.map +1 -1
  105. package/out/shared/src/asserts.js.map +1 -1
  106. package/out/shared/src/bigint-json.js.map +1 -1
  107. package/out/shared/src/binary-search.js.map +1 -1
  108. package/out/shared/src/broadcast-channel.js.map +1 -1
  109. package/out/shared/src/browser-env.js.map +1 -1
  110. package/out/shared/src/btree-set.js.map +1 -1
  111. package/out/shared/src/cache.js.map +1 -1
  112. package/out/shared/src/centroid.js.map +1 -1
  113. package/out/shared/src/custom-key-map.js.map +1 -1
  114. package/out/shared/src/custom-key-set.js.map +1 -1
  115. package/out/shared/src/deep-clone.js.map +1 -1
  116. package/out/shared/src/deep-merge.js.map +1 -1
  117. package/out/shared/src/document-visible.js.map +1 -1
  118. package/out/shared/src/dotenv.js.map +1 -1
  119. package/out/shared/src/error.js.map +1 -1
  120. package/out/shared/src/hash.js.map +1 -1
  121. package/out/shared/src/iterables.js.map +1 -1
  122. package/out/shared/src/json-schema.js.map +1 -1
  123. package/out/shared/src/json.js.map +1 -1
  124. package/out/shared/src/logging-test-utils.js.map +1 -1
  125. package/out/shared/src/logging.js.map +1 -1
  126. package/out/shared/src/map.js.map +1 -1
  127. package/out/shared/src/must.js.map +1 -1
  128. package/out/shared/src/object-traversal.js.map +1 -1
  129. package/out/shared/src/objects.js.map +1 -1
  130. package/out/shared/src/options.js.map +1 -1
  131. package/out/shared/src/parse-big-int.js.map +1 -1
  132. package/out/shared/src/promise-race.js.map +1 -1
  133. package/out/shared/src/queue.d.ts.map +1 -1
  134. package/out/shared/src/queue.js +21 -15
  135. package/out/shared/src/queue.js.map +1 -1
  136. package/out/shared/src/rand.js.map +1 -1
  137. package/out/shared/src/random-uint64.js.map +1 -1
  138. package/out/shared/src/random-values.js.map +1 -1
  139. package/out/shared/src/record-proxy.js.map +1 -1
  140. package/out/shared/src/resolved-promises.js.map +1 -1
  141. package/out/shared/src/sentinels.js.map +1 -1
  142. package/out/shared/src/set-utils.js.map +1 -1
  143. package/out/shared/src/size-of-value.js.map +1 -1
  144. package/out/shared/src/sleep.js.map +1 -1
  145. package/out/shared/src/sorted-entries.js.map +1 -1
  146. package/out/shared/src/string-compare.js.map +1 -1
  147. package/out/shared/src/subscribable.js.map +1 -1
  148. package/out/shared/src/tdigest-schema.js.map +1 -1
  149. package/out/shared/src/tdigest.js.map +1 -1
  150. package/out/shared/src/valita.js.map +1 -1
  151. package/out/z2s/src/compiler.js.map +1 -1
  152. package/out/z2s/src/sql.js.map +1 -1
  153. package/out/zero/package.js +23 -23
  154. package/out/zero/package.js.map +1 -1
  155. package/out/zero/src/build-schema.js.map +1 -1
  156. package/out/zero/src/zero-cache-dev.js.map +1 -1
  157. package/out/zero/src/zero-out.js.map +1 -1
  158. package/out/zero-cache/src/auth/auth.js.map +1 -1
  159. package/out/zero-cache/src/auth/jwt.js.map +1 -1
  160. package/out/zero-cache/src/auth/load-permissions.js.map +1 -1
  161. package/out/zero-cache/src/auth/read-authorizer.js.map +1 -1
  162. package/out/zero-cache/src/auth/write-authorizer.js.map +1 -1
  163. package/out/zero-cache/src/config/network.js.map +1 -1
  164. package/out/zero-cache/src/config/normalize.js.map +1 -1
  165. package/out/zero-cache/src/config/server-context.js.map +1 -1
  166. package/out/zero-cache/src/config/zero-config.js +0 -5
  167. package/out/zero-cache/src/config/zero-config.js.map +1 -1
  168. package/out/zero-cache/src/custom/fetch.js.map +1 -1
  169. package/out/zero-cache/src/custom-queries/transform-query.js.map +1 -1
  170. package/out/zero-cache/src/db/create.js.map +1 -1
  171. package/out/zero-cache/src/db/delete-lite-db.js.map +1 -1
  172. package/out/zero-cache/src/db/lite-tables.js.map +1 -1
  173. package/out/zero-cache/src/db/migration-lite.js +0 -19
  174. package/out/zero-cache/src/db/migration-lite.js.map +1 -1
  175. package/out/zero-cache/src/db/migration.js +0 -19
  176. package/out/zero-cache/src/db/migration.js.map +1 -1
  177. package/out/zero-cache/src/db/pg-copy-binary.js.map +1 -1
  178. package/out/zero-cache/src/db/pg-copy.js.map +1 -1
  179. package/out/zero-cache/src/db/pg-to-lite.js.map +1 -1
  180. package/out/zero-cache/src/db/pg-type-parser.js.map +1 -1
  181. package/out/zero-cache/src/db/run-transaction.js.map +1 -1
  182. package/out/zero-cache/src/db/specs.js.map +1 -1
  183. package/out/zero-cache/src/db/statements.js.map +1 -1
  184. package/out/zero-cache/src/db/transaction-pool.js.map +1 -1
  185. package/out/zero-cache/src/db/warmup.js.map +1 -1
  186. package/out/zero-cache/src/observability/events.js.map +1 -1
  187. package/out/zero-cache/src/observability/metrics.js.map +1 -1
  188. package/out/zero-cache/src/scripts/decommission.js.map +1 -1
  189. package/out/zero-cache/src/scripts/deploy-permissions.js.map +1 -1
  190. package/out/zero-cache/src/scripts/permissions.js.map +1 -1
  191. package/out/zero-cache/src/server/anonymous-otel-start.js +10 -11
  192. package/out/zero-cache/src/server/anonymous-otel-start.js.map +1 -1
  193. package/out/zero-cache/src/server/change-streamer.js.map +1 -1
  194. package/out/zero-cache/src/server/inspector-delegate.js.map +1 -1
  195. package/out/zero-cache/src/server/logging.js.map +1 -1
  196. package/out/zero-cache/src/server/main.js.map +1 -1
  197. package/out/zero-cache/src/server/mutator.js.map +1 -1
  198. package/out/zero-cache/src/server/otel-diag-logger.js.map +1 -1
  199. package/out/zero-cache/src/server/otel-log-sink.js.map +1 -1
  200. package/out/zero-cache/src/server/otel-start.js +1 -1
  201. package/out/zero-cache/src/server/otel-start.js.map +1 -1
  202. package/out/zero-cache/src/server/priority-op.js.map +1 -1
  203. package/out/zero-cache/src/server/reaper.js.map +1 -1
  204. package/out/zero-cache/src/server/replicator.js.map +1 -1
  205. package/out/zero-cache/src/server/runner/main.js.map +1 -1
  206. package/out/zero-cache/src/server/runner/run-worker.js.map +1 -1
  207. package/out/zero-cache/src/server/runner/runtime.js.map +1 -1
  208. package/out/zero-cache/src/server/runner/zero-dispatcher.js.map +1 -1
  209. package/out/zero-cache/src/server/shadow-syncer.js.map +1 -1
  210. package/out/zero-cache/src/server/syncer.js.map +1 -1
  211. package/out/zero-cache/src/server/worker-dispatcher.js.map +1 -1
  212. package/out/zero-cache/src/server/worker-urls.js.map +1 -1
  213. package/out/zero-cache/src/services/analyze.d.ts.map +1 -1
  214. package/out/zero-cache/src/services/analyze.js +2 -5
  215. package/out/zero-cache/src/services/analyze.js.map +1 -1
  216. package/out/zero-cache/src/services/change-source/common/backfill-manager.js.map +1 -1
  217. package/out/zero-cache/src/services/change-source/common/change-stream-multiplexer.js.map +1 -1
  218. package/out/zero-cache/src/services/change-source/common/replica-schema.js.map +1 -1
  219. package/out/zero-cache/src/services/change-source/custom/change-source.js.map +1 -1
  220. package/out/zero-cache/src/services/change-source/pg/backfill-metadata.js.map +1 -1
  221. package/out/zero-cache/src/services/change-source/pg/backfill-stream.js.map +1 -1
  222. package/out/zero-cache/src/services/change-source/pg/change-source.js.map +1 -1
  223. package/out/zero-cache/src/services/change-source/pg/decommission.js.map +1 -1
  224. package/out/zero-cache/src/services/change-source/pg/initial-sync.js.map +1 -1
  225. package/out/zero-cache/src/services/change-source/pg/logical-replication/binary-reader.js.map +1 -1
  226. package/out/zero-cache/src/services/change-source/pg/logical-replication/pgoutput-parser.js.map +1 -1
  227. package/out/zero-cache/src/services/change-source/pg/logical-replication/stream.js.map +1 -1
  228. package/out/zero-cache/src/services/change-source/pg/lsn.js.map +1 -1
  229. package/out/zero-cache/src/services/change-source/pg/replication-slots.js.map +1 -1
  230. package/out/zero-cache/src/services/change-source/pg/schema/ddl.js.map +1 -1
  231. package/out/zero-cache/src/services/change-source/pg/schema/init.js.map +1 -1
  232. package/out/zero-cache/src/services/change-source/pg/schema/published.js.map +1 -1
  233. package/out/zero-cache/src/services/change-source/pg/schema/shard.js.map +1 -1
  234. package/out/zero-cache/src/services/change-source/pg/schema/validation.js.map +1 -1
  235. package/out/zero-cache/src/services/change-source/protocol/current/control.js.map +1 -1
  236. package/out/zero-cache/src/services/change-source/protocol/current/data.js +0 -2
  237. package/out/zero-cache/src/services/change-source/protocol/current/data.js.map +1 -1
  238. package/out/zero-cache/src/services/change-source/protocol/current/downstream.js.map +1 -1
  239. package/out/zero-cache/src/services/change-source/protocol/current/json.js.map +1 -1
  240. package/out/zero-cache/src/services/change-source/protocol/current/status.js.map +1 -1
  241. package/out/zero-cache/src/services/change-source/protocol/current/upstream.js.map +1 -1
  242. package/out/zero-cache/src/services/change-streamer/backup-monitor.js.map +1 -1
  243. package/out/zero-cache/src/services/change-streamer/broadcast.js.map +1 -1
  244. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
  245. package/out/zero-cache/src/services/change-streamer/change-streamer-service.js.map +1 -1
  246. package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -1
  247. package/out/zero-cache/src/services/change-streamer/forwarder.js.map +1 -1
  248. package/out/zero-cache/src/services/change-streamer/replica-monitor.js.map +1 -1
  249. package/out/zero-cache/src/services/change-streamer/schema/init.js +25 -21
  250. package/out/zero-cache/src/services/change-streamer/schema/init.js.map +1 -1
  251. package/out/zero-cache/src/services/change-streamer/schema/tables.js.map +1 -1
  252. package/out/zero-cache/src/services/change-streamer/snapshot.js +0 -15
  253. package/out/zero-cache/src/services/change-streamer/snapshot.js.map +1 -1
  254. package/out/zero-cache/src/services/change-streamer/storer.js.map +1 -1
  255. package/out/zero-cache/src/services/change-streamer/subscriber.js.map +1 -1
  256. package/out/zero-cache/src/services/heapz.js.map +1 -1
  257. package/out/zero-cache/src/services/http-service.js.map +1 -1
  258. package/out/zero-cache/src/services/life-cycle.js.map +1 -1
  259. package/out/zero-cache/src/services/limiter/sliding-window-limiter.js.map +1 -1
  260. package/out/zero-cache/src/services/litestream/commands.js.map +1 -1
  261. package/out/zero-cache/src/services/mutagen/error.js.map +1 -1
  262. package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
  263. package/out/zero-cache/src/services/mutagen/pusher.js.map +1 -1
  264. package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -1
  265. package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
  266. package/out/zero-cache/src/services/replicator/notifier.js.map +1 -1
  267. package/out/zero-cache/src/services/replicator/replication-status.js.map +1 -1
  268. package/out/zero-cache/src/services/replicator/replicator.js.map +1 -1
  269. package/out/zero-cache/src/services/replicator/reporter/recorder.js.map +1 -1
  270. package/out/zero-cache/src/services/replicator/reporter/report-schema.js.map +1 -1
  271. package/out/zero-cache/src/services/replicator/schema/change-log.js.map +1 -1
  272. package/out/zero-cache/src/services/replicator/schema/column-metadata.js.map +1 -1
  273. package/out/zero-cache/src/services/replicator/schema/replication-state.js.map +1 -1
  274. package/out/zero-cache/src/services/replicator/schema/table-metadata.js.map +1 -1
  275. package/out/zero-cache/src/services/replicator/write-worker-client.js.map +1 -1
  276. package/out/zero-cache/src/services/replicator/write-worker.js.map +1 -1
  277. package/out/zero-cache/src/services/run-ast.d.ts.map +1 -1
  278. package/out/zero-cache/src/services/run-ast.js +0 -1
  279. package/out/zero-cache/src/services/run-ast.js.map +1 -1
  280. package/out/zero-cache/src/services/runner.js.map +1 -1
  281. package/out/zero-cache/src/services/running-state.js.map +1 -1
  282. package/out/zero-cache/src/services/shadow-sync/shadow-sync-service.js.map +1 -1
  283. package/out/zero-cache/src/services/statz.js.map +1 -1
  284. package/out/zero-cache/src/services/view-syncer/active-users-gauge.js.map +1 -1
  285. package/out/zero-cache/src/services/view-syncer/client-handler.js.map +1 -1
  286. package/out/zero-cache/src/services/view-syncer/client-schema.js.map +1 -1
  287. package/out/zero-cache/src/services/view-syncer/connection-context-manager.js.map +1 -1
  288. package/out/zero-cache/src/services/view-syncer/cvr-purger.d.ts.map +1 -1
  289. package/out/zero-cache/src/services/view-syncer/cvr-purger.js +1 -2
  290. package/out/zero-cache/src/services/view-syncer/cvr-purger.js.map +1 -1
  291. package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -1
  292. package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
  293. package/out/zero-cache/src/services/view-syncer/drain-coordinator.js.map +1 -1
  294. package/out/zero-cache/src/services/view-syncer/inspect-handler.d.ts +14 -0
  295. package/out/zero-cache/src/services/view-syncer/inspect-handler.d.ts.map +1 -1
  296. package/out/zero-cache/src/services/view-syncer/inspect-handler.js +25 -2
  297. package/out/zero-cache/src/services/view-syncer/inspect-handler.js.map +1 -1
  298. package/out/zero-cache/src/services/view-syncer/pipeline-driver.js.map +1 -1
  299. package/out/zero-cache/src/services/view-syncer/row-record-cache.js.map +1 -1
  300. package/out/zero-cache/src/services/view-syncer/row-set-signature.js.map +1 -1
  301. package/out/zero-cache/src/services/view-syncer/schema/cvr.js.map +1 -1
  302. package/out/zero-cache/src/services/view-syncer/schema/init.js +113 -97
  303. package/out/zero-cache/src/services/view-syncer/schema/init.js.map +1 -1
  304. package/out/zero-cache/src/services/view-syncer/schema/types.js +1 -103
  305. package/out/zero-cache/src/services/view-syncer/schema/types.js.map +1 -1
  306. package/out/zero-cache/src/services/view-syncer/snapshotter.js.map +1 -1
  307. package/out/zero-cache/src/services/view-syncer/tracer.js.map +1 -1
  308. package/out/zero-cache/src/services/view-syncer/ttl-clock.js.map +1 -1
  309. package/out/zero-cache/src/services/view-syncer/view-syncer.js +1 -4
  310. package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
  311. package/out/zero-cache/src/types/configuration-error.js.map +1 -1
  312. package/out/zero-cache/src/types/error-with-level.js.map +1 -1
  313. package/out/zero-cache/src/types/http.js.map +1 -1
  314. package/out/zero-cache/src/types/lexi-version.js.map +1 -1
  315. package/out/zero-cache/src/types/lite.js.map +1 -1
  316. package/out/zero-cache/src/types/names.js.map +1 -1
  317. package/out/zero-cache/src/types/pg-data-type.js.map +1 -1
  318. package/out/zero-cache/src/types/pg.js.map +1 -1
  319. package/out/zero-cache/src/types/processes.js.map +1 -1
  320. package/out/zero-cache/src/types/profiler.js.map +1 -1
  321. package/out/zero-cache/src/types/row-key.js.map +1 -1
  322. package/out/zero-cache/src/types/shards.js.map +1 -1
  323. package/out/zero-cache/src/types/sql.js.map +1 -1
  324. package/out/zero-cache/src/types/state-version.js.map +1 -1
  325. package/out/zero-cache/src/types/streams.js.map +1 -1
  326. package/out/zero-cache/src/types/strings.js.map +1 -1
  327. package/out/zero-cache/src/types/subscription.js.map +1 -1
  328. package/out/zero-cache/src/types/timeout.js.map +1 -1
  329. package/out/zero-cache/src/types/url-params.js.map +1 -1
  330. package/out/zero-cache/src/types/websocket-handoff.js.map +1 -1
  331. package/out/zero-cache/src/types/ws.js.map +1 -1
  332. package/out/zero-cache/src/workers/connect-params.js.map +1 -1
  333. package/out/zero-cache/src/workers/connection.js.map +1 -1
  334. package/out/zero-cache/src/workers/mutator.js.map +1 -1
  335. package/out/zero-cache/src/workers/replicator.js.map +1 -1
  336. package/out/zero-cache/src/workers/syncer-ws-message-handler.js.map +1 -1
  337. package/out/zero-cache/src/workers/syncer.js.map +1 -1
  338. package/out/zero-client/src/client/active-clients-manager.js.map +1 -1
  339. package/out/zero-client/src/client/connection-manager.js +1 -2
  340. package/out/zero-client/src/client/connection-manager.js.map +1 -1
  341. package/out/zero-client/src/client/connection.js.map +1 -1
  342. package/out/zero-client/src/client/context.js.map +1 -1
  343. package/out/zero-client/src/client/crud-impl.js.map +1 -1
  344. package/out/zero-client/src/client/crud.js.map +1 -1
  345. package/out/zero-client/src/client/custom.js +1 -2
  346. package/out/zero-client/src/client/custom.js.map +1 -1
  347. package/out/zero-client/src/client/delete-clients-manager.js.map +1 -1
  348. package/out/zero-client/src/client/enable-analytics.js.map +1 -1
  349. package/out/zero-client/src/client/error.js.map +1 -1
  350. package/out/zero-client/src/client/http-string.js.map +1 -1
  351. package/out/zero-client/src/client/inspector/client-group.js.map +1 -1
  352. package/out/zero-client/src/client/inspector/client.js.map +1 -1
  353. package/out/zero-client/src/client/inspector/html-dialog-prompt.js.map +1 -1
  354. package/out/zero-client/src/client/inspector/inspector.js.map +1 -1
  355. package/out/zero-client/src/client/inspector/lazy-inspector.js.map +1 -1
  356. package/out/zero-client/src/client/inspector/query.js.map +1 -1
  357. package/out/zero-client/src/client/ivm-branch.js.map +1 -1
  358. package/out/zero-client/src/client/keys.js.map +1 -1
  359. package/out/zero-client/src/client/log-options.js.map +1 -1
  360. package/out/zero-client/src/client/make-mutate-property.js.map +1 -1
  361. package/out/zero-client/src/client/make-replicache-mutators.js.map +1 -1
  362. package/out/zero-client/src/client/metrics.js.map +1 -1
  363. package/out/zero-client/src/client/mutation-tracker.js.map +1 -1
  364. package/out/zero-client/src/client/mutator-proxy.js.map +1 -1
  365. package/out/zero-client/src/client/options.js.map +1 -1
  366. package/out/zero-client/src/client/query-manager.js.map +1 -1
  367. package/out/zero-client/src/client/reload-error-handler.js.map +1 -1
  368. package/out/zero-client/src/client/server-option.js.map +1 -1
  369. package/out/zero-client/src/client/version.js +1 -1
  370. package/out/zero-client/src/client/zero-poke-handler.js.map +1 -1
  371. package/out/zero-client/src/client/zero-rep.js.map +1 -1
  372. package/out/zero-client/src/client/zero.d.ts.map +1 -1
  373. package/out/zero-client/src/client/zero.js +32 -58
  374. package/out/zero-client/src/client/zero.js.map +1 -1
  375. package/out/zero-client/src/util/nanoid.js.map +1 -1
  376. package/out/zero-client/src/util/socket.d.ts +3 -0
  377. package/out/zero-client/src/util/socket.d.ts.map +1 -0
  378. package/out/zero-client/src/util/socket.js +8 -0
  379. package/out/zero-client/src/util/socket.js.map +1 -0
  380. package/out/zero-protocol/src/analyze-query-result.js +0 -3
  381. package/out/zero-protocol/src/analyze-query-result.js.map +1 -1
  382. package/out/zero-protocol/src/application-error.js.map +1 -1
  383. package/out/zero-protocol/src/ast.js.map +1 -1
  384. package/out/zero-protocol/src/change-desired-queries.js +0 -1
  385. package/out/zero-protocol/src/change-desired-queries.js.map +1 -1
  386. package/out/zero-protocol/src/client-schema.js.map +1 -1
  387. package/out/zero-protocol/src/close-connection.js.map +1 -1
  388. package/out/zero-protocol/src/connect.js +0 -7
  389. package/out/zero-protocol/src/connect.js.map +1 -1
  390. package/out/zero-protocol/src/custom-queries.js.map +1 -1
  391. package/out/zero-protocol/src/data.js.map +1 -1
  392. package/out/zero-protocol/src/delete-clients.js.map +1 -1
  393. package/out/zero-protocol/src/down.js.map +1 -1
  394. package/out/zero-protocol/src/error.js +0 -7
  395. package/out/zero-protocol/src/error.js.map +1 -1
  396. package/out/zero-protocol/src/inspect-down.js.map +1 -1
  397. package/out/zero-protocol/src/inspect-up.js +0 -1
  398. package/out/zero-protocol/src/inspect-up.js.map +1 -1
  399. package/out/zero-protocol/src/mutate-server.js.map +1 -1
  400. package/out/zero-protocol/src/mutation-id.js.map +1 -1
  401. package/out/zero-protocol/src/mutation.js.map +1 -1
  402. package/out/zero-protocol/src/mutations-patch.js.map +1 -1
  403. package/out/zero-protocol/src/ping.js.map +1 -1
  404. package/out/zero-protocol/src/poke.js +0 -4
  405. package/out/zero-protocol/src/poke.js.map +1 -1
  406. package/out/zero-protocol/src/pong.js.map +1 -1
  407. package/out/zero-protocol/src/primary-key.js.map +1 -1
  408. package/out/zero-protocol/src/protocol-version.js.map +1 -1
  409. package/out/zero-protocol/src/pull.js.map +1 -1
  410. package/out/zero-protocol/src/push.js +0 -16
  411. package/out/zero-protocol/src/push.js.map +1 -1
  412. package/out/zero-protocol/src/queries-patch.js.map +1 -1
  413. package/out/zero-protocol/src/query-hash.js.map +1 -1
  414. package/out/zero-protocol/src/query-server.js.map +1 -1
  415. package/out/zero-protocol/src/row-patch.js.map +1 -1
  416. package/out/zero-protocol/src/up.js.map +1 -1
  417. package/out/zero-protocol/src/update-auth.js.map +1 -1
  418. package/out/zero-protocol/src/version.js.map +1 -1
  419. package/out/zero-react/src/use-connection-state.js +2 -4
  420. package/out/zero-react/src/use-connection-state.js.map +1 -1
  421. package/out/zero-react/src/use-query.js +4 -6
  422. package/out/zero-react/src/use-query.js.map +1 -1
  423. package/out/zero-react/src/use-zero-online.js +2 -4
  424. package/out/zero-react/src/use-zero-online.js.map +1 -1
  425. package/out/zero-react/src/zero-provider.js +12 -15
  426. package/out/zero-react/src/zero-provider.js.map +1 -1
  427. package/out/zero-schema/src/builder/relationship-builder.js.map +1 -1
  428. package/out/zero-schema/src/builder/schema-builder.js.map +1 -1
  429. package/out/zero-schema/src/builder/table-builder.js.map +1 -1
  430. package/out/zero-schema/src/compiled-permissions.js.map +1 -1
  431. package/out/zero-schema/src/name-mapper.js.map +1 -1
  432. package/out/zero-schema/src/permissions.js.map +1 -1
  433. package/out/zero-schema/src/schema-config.js.map +1 -1
  434. package/out/zero-server/src/adapters/drizzle.js.map +1 -1
  435. package/out/zero-server/src/adapters/kysely.js.map +1 -1
  436. package/out/zero-server/src/adapters/pg.js +1 -1
  437. package/out/zero-server/src/adapters/pg.js.map +1 -1
  438. package/out/zero-server/src/adapters/postgresjs.js.map +1 -1
  439. package/out/zero-server/src/adapters/prisma.js.map +1 -1
  440. package/out/zero-server/src/custom.js +1 -2
  441. package/out/zero-server/src/custom.js.map +1 -1
  442. package/out/zero-server/src/logging.js.map +1 -1
  443. package/out/zero-server/src/pg-query-executor.js.map +1 -1
  444. package/out/zero-server/src/process-mutations.js.map +1 -1
  445. package/out/zero-server/src/push-processor.js.map +1 -1
  446. package/out/zero-server/src/queries/process-queries.js.map +1 -1
  447. package/out/zero-server/src/schema.js.map +1 -1
  448. package/out/zero-server/src/zql-database.js.map +1 -1
  449. package/out/zero-solid/src/solid-view.js +1 -1
  450. package/out/zero-solid/src/solid-view.js.map +1 -1
  451. package/out/zero-solid/src/use-connection-state.js +1 -1
  452. package/out/zero-solid/src/use-connection-state.js.map +1 -1
  453. package/out/zero-solid/src/use-query.js +2 -2
  454. package/out/zero-solid/src/use-query.js.map +1 -1
  455. package/out/zero-solid/src/use-zero-online.js +1 -1
  456. package/out/zero-solid/src/use-zero-online.js.map +1 -1
  457. package/out/zero-solid/src/use-zero.js +1 -1
  458. package/out/zero-solid/src/use-zero.js.map +1 -1
  459. package/out/zero-types/src/format.js.map +1 -1
  460. package/out/zero-types/src/name-mapper.js.map +1 -1
  461. package/out/zql/src/builder/builder.js.map +1 -1
  462. package/out/zql/src/builder/debug-delegate.d.ts +0 -5
  463. package/out/zql/src/builder/debug-delegate.d.ts.map +1 -1
  464. package/out/zql/src/builder/debug-delegate.js +1 -10
  465. package/out/zql/src/builder/debug-delegate.js.map +1 -1
  466. package/out/zql/src/builder/filter.js.map +1 -1
  467. package/out/zql/src/builder/like.js.map +1 -1
  468. package/out/zql/src/error.js.map +1 -1
  469. package/out/zql/src/ivm/array-view.js.map +1 -1
  470. package/out/zql/src/ivm/cap.js.map +1 -1
  471. package/out/zql/src/ivm/change.js.map +1 -1
  472. package/out/zql/src/ivm/constraint.js +1 -1
  473. package/out/zql/src/ivm/constraint.js.map +1 -1
  474. package/out/zql/src/ivm/data.js.map +1 -1
  475. package/out/zql/src/ivm/exists.js.map +1 -1
  476. package/out/zql/src/ivm/fan-in.js.map +1 -1
  477. package/out/zql/src/ivm/fan-out.js.map +1 -1
  478. package/out/zql/src/ivm/filter-operators.js.map +1 -1
  479. package/out/zql/src/ivm/filter-push.js.map +1 -1
  480. package/out/zql/src/ivm/filter.js.map +1 -1
  481. package/out/zql/src/ivm/flipped-join.d.ts +8 -4
  482. package/out/zql/src/ivm/flipped-join.d.ts.map +1 -1
  483. package/out/zql/src/ivm/flipped-join.js +63 -59
  484. package/out/zql/src/ivm/flipped-join.js.map +1 -1
  485. package/out/zql/src/ivm/join-utils.js.map +1 -1
  486. package/out/zql/src/ivm/join.js.map +1 -1
  487. package/out/zql/src/ivm/maybe-split-and-push-edit-change.js.map +1 -1
  488. package/out/zql/src/ivm/memory-source.js.map +1 -1
  489. package/out/zql/src/ivm/memory-storage.js.map +1 -1
  490. package/out/zql/src/ivm/operator.d.ts +1 -1
  491. package/out/zql/src/ivm/operator.js.map +1 -1
  492. package/out/zql/src/ivm/push-accumulated.js.map +1 -1
  493. package/out/zql/src/ivm/schema.d.ts +8 -0
  494. package/out/zql/src/ivm/schema.d.ts.map +1 -1
  495. package/out/zql/src/ivm/skip-yields.js.map +1 -1
  496. package/out/zql/src/ivm/skip.js.map +1 -1
  497. package/out/zql/src/ivm/source.js.map +1 -1
  498. package/out/zql/src/ivm/stream.js.map +1 -1
  499. package/out/zql/src/ivm/take.js.map +1 -1
  500. package/out/zql/src/ivm/union-fan-in.js.map +1 -1
  501. package/out/zql/src/ivm/union-fan-out.js.map +1 -1
  502. package/out/zql/src/ivm/view-apply-change.js.map +1 -1
  503. package/out/zql/src/mutate/crud.js.map +1 -1
  504. package/out/zql/src/mutate/custom.js.map +1 -1
  505. package/out/zql/src/mutate/mutator-registry.js.map +1 -1
  506. package/out/zql/src/mutate/mutator.js.map +1 -1
  507. package/out/zql/src/planner/planner-builder.js.map +1 -1
  508. package/out/zql/src/planner/planner-connection.js.map +1 -1
  509. package/out/zql/src/planner/planner-constraint.js.map +1 -1
  510. package/out/zql/src/planner/planner-debug.js.map +1 -1
  511. package/out/zql/src/planner/planner-fan-in.js.map +1 -1
  512. package/out/zql/src/planner/planner-fan-out.js.map +1 -1
  513. package/out/zql/src/planner/planner-graph.js.map +1 -1
  514. package/out/zql/src/planner/planner-join.d.ts.map +1 -1
  515. package/out/zql/src/planner/planner-join.js +1 -2
  516. package/out/zql/src/planner/planner-join.js.map +1 -1
  517. package/out/zql/src/planner/planner-node.js.map +1 -1
  518. package/out/zql/src/planner/planner-source.js.map +1 -1
  519. package/out/zql/src/planner/planner-terminus.js.map +1 -1
  520. package/out/zql/src/query/complete-ordering.js.map +1 -1
  521. package/out/zql/src/query/create-builder.js.map +1 -1
  522. package/out/zql/src/query/error.js.map +1 -1
  523. package/out/zql/src/query/escape-like.js.map +1 -1
  524. package/out/zql/src/query/expression.js.map +1 -1
  525. package/out/zql/src/query/measure-push-operator.js.map +1 -1
  526. package/out/zql/src/query/metrics-delegate.js.map +1 -1
  527. package/out/zql/src/query/named.js.map +1 -1
  528. package/out/zql/src/query/query-delegate-base.js.map +1 -1
  529. package/out/zql/src/query/query-impl.js +1 -1
  530. package/out/zql/src/query/query-impl.js.map +1 -1
  531. package/out/zql/src/query/query-internals.js.map +1 -1
  532. package/out/zql/src/query/query-registry.js.map +1 -1
  533. package/out/zql/src/query/runnable-query-impl.js.map +1 -1
  534. package/out/zql/src/query/static-query.js.map +1 -1
  535. package/out/zql/src/query/ttl.js.map +1 -1
  536. package/out/zql/src/query/validate-input.js.map +1 -1
  537. package/out/zqlite/src/database-storage.js.map +1 -1
  538. package/out/zqlite/src/db.js.map +1 -1
  539. package/out/zqlite/src/explain-queries.js.map +1 -1
  540. package/out/zqlite/src/internal/sql-inline.js.map +1 -1
  541. package/out/zqlite/src/internal/sql.js.map +1 -1
  542. package/out/zqlite/src/internal/statement-cache.js.map +1 -1
  543. package/out/zqlite/src/query-builder.js.map +1 -1
  544. package/out/zqlite/src/query-delegate.js.map +1 -1
  545. package/out/zqlite/src/resolve-scalar-subqueries.js.map +1 -1
  546. package/out/zqlite/src/sqlite-cost-model.js.map +1 -1
  547. package/out/zqlite/src/sqlite-stat-fanout.js.map +1 -1
  548. package/out/zqlite/src/table-source.d.ts.map +1 -1
  549. package/out/zqlite/src/table-source.js +6 -6
  550. package/out/zqlite/src/table-source.js.map +1 -1
  551. package/package.json +23 -23
  552. package/out/_virtual/__vite-optional-peer-dep_pg-native_pg.js +0 -13
  553. package/out/_virtual/__vite-optional-peer-dep_pg-native_pg.js.map +0 -1
  554. package/out/node_modules/.pnpm/@opentelemetry_semantic-conventions@1.41.1/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -12
  555. package/out/node_modules/.pnpm/@opentelemetry_semantic-conventions@1.41.1/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +0 -1
  556. package/out/node_modules/.pnpm/pg-cloudflare@1.3.0/node_modules/pg-cloudflare/dist/empty.js +0 -11
  557. package/out/node_modules/.pnpm/pg-cloudflare@1.3.0/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  558. package/out/node_modules/.pnpm/pg-connection-string@2.12.0/node_modules/pg-connection-string/index.js +0 -130
  559. package/out/node_modules/.pnpm/pg-connection-string@2.12.0/node_modules/pg-connection-string/index.js.map +0 -1
  560. package/out/node_modules/.pnpm/pg-int8@1.0.1/node_modules/pg-int8/index.js +0 -62
  561. package/out/node_modules/.pnpm/pg-int8@1.0.1/node_modules/pg-int8/index.js.map +0 -1
  562. package/out/node_modules/.pnpm/pg-pool@3.13.0_pg@8.20.0/node_modules/pg-pool/index.js +0 -353
  563. package/out/node_modules/.pnpm/pg-pool@3.13.0_pg@8.20.0/node_modules/pg-pool/index.js.map +0 -1
  564. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/buffer-reader.js +0 -60
  565. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
  566. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
  567. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
  568. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/index.js +0 -35
  569. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/index.js.map +0 -1
  570. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/messages.js +0 -167
  571. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/messages.js.map +0 -1
  572. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/parser.js +0 -288
  573. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/parser.js.map +0 -1
  574. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/serializer.js +0 -177
  575. package/out/node_modules/.pnpm/pg-protocol@1.13.0/node_modules/pg-protocol/dist/serializer.js.map +0 -1
  576. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.js +0 -46
  577. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.js.map +0 -1
  578. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/arrayParser.js +0 -16
  579. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/arrayParser.js.map +0 -1
  580. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/binaryParsers.js +0 -165
  581. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/binaryParsers.js.map +0 -1
  582. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/builtins.js +0 -81
  583. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/builtins.js.map +0 -1
  584. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/textParsers.js +0 -167
  585. package/out/node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/lib/textParsers.js.map +0 -1
  586. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/esm/index.js +0 -19
  587. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/esm/index.js.map +0 -1
  588. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/client.js +0 -508
  589. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/client.js.map +0 -1
  590. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/connection-parameters.js +0 -104
  591. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/connection-parameters.js.map +0 -1
  592. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/connection.js +0 -160
  593. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/connection.js.map +0 -1
  594. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/cert-signatures.js +0 -97
  595. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/cert-signatures.js.map +0 -1
  596. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/sasl.js +0 -131
  597. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/sasl.js.map +0 -1
  598. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-legacy.js +0 -39
  599. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-legacy.js.map +0 -1
  600. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  601. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-webcrypto.js.map +0 -1
  602. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils.js +0 -13
  603. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils.js.map +0 -1
  604. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/defaults.js +0 -46
  605. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/defaults.js.map +0 -1
  606. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/index.js +0 -71
  607. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/index.js.map +0 -1
  608. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/client.js +0 -226
  609. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/client.js.map +0 -1
  610. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/index.js +0 -11
  611. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/index.js.map +0 -1
  612. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/query.js +0 -117
  613. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/query.js.map +0 -1
  614. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/query.js +0 -151
  615. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/query.js.map +0 -1
  616. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/result.js +0 -76
  617. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/result.js.map +0 -1
  618. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/stream.js +0 -73
  619. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/stream.js.map +0 -1
  620. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/type-overrides.js +0 -35
  621. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/type-overrides.js.map +0 -1
  622. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/utils.js +0 -118
  623. package/out/node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/utils.js.map +0 -1
  624. package/out/node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js +0 -147
  625. package/out/node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js.map +0 -1
  626. package/out/node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js +0 -21
  627. package/out/node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js.map +0 -1
  628. package/out/node_modules/.pnpm/postgres-array@2.0.0/node_modules/postgres-array/index.js +0 -84
  629. package/out/node_modules/.pnpm/postgres-array@2.0.0/node_modules/postgres-array/index.js.map +0 -1
  630. package/out/node_modules/.pnpm/postgres-bytea@1.0.1/node_modules/postgres-bytea/index.js +0 -28
  631. package/out/node_modules/.pnpm/postgres-bytea@1.0.1/node_modules/postgres-bytea/index.js.map +0 -1
  632. package/out/node_modules/.pnpm/postgres-date@1.0.7/node_modules/postgres-date/index.js +0 -65
  633. package/out/node_modules/.pnpm/postgres-date@1.0.7/node_modules/postgres-date/index.js.map +0 -1
  634. package/out/node_modules/.pnpm/postgres-interval@1.2.0/node_modules/postgres-interval/index.js +0 -107
  635. package/out/node_modules/.pnpm/postgres-interval@1.2.0/node_modules/postgres-interval/index.js.map +0 -1
  636. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -696
  637. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  638. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -44
  639. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  640. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js +0 -1585
  641. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js.map +0 -1
  642. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js +0 -329
  643. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js.map +0 -1
  644. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js +0 -13
  645. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js.map +0 -1
  646. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -13
  647. package/out/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js.map +0 -1
  648. package/out/node_modules/.pnpm/solid-js@1.9.13/node_modules/solid-js/dist/server.js +0 -131
  649. package/out/node_modules/.pnpm/solid-js@1.9.13/node_modules/solid-js/dist/server.js.map +0 -1
  650. package/out/node_modules/.pnpm/solid-js@1.9.13/node_modules/solid-js/store/dist/server.js +0 -96
  651. package/out/node_modules/.pnpm/solid-js@1.9.13/node_modules/solid-js/store/dist/server.js.map +0 -1
  652. package/out/node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js +0 -95
  653. package/out/node_modules/.pnpm/split2@4.2.0/node_modules/split2/index.js.map +0 -1
  654. package/out/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/mutable.js +0 -18
  655. package/out/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/mutable.js.map +0 -1
  656. package/out/shared/src/ring-buffer.d.ts +0 -32
  657. package/out/shared/src/ring-buffer.d.ts.map +0 -1
  658. package/out/shared/src/ring-buffer.js +0 -109
  659. package/out/shared/src/ring-buffer.js.map +0 -1
@@ -1,89 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-webcrypto.js
3
- var require_utils_webcrypto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
- var nodeCrypto = __require("crypto");
5
- module.exports = {
6
- postgresMd5PasswordHash,
7
- randomBytes,
8
- deriveKey,
9
- sha256,
10
- hashByName,
11
- hmacSha256,
12
- md5
13
- };
14
- /**
15
- * The Web Crypto API - grabbed from the Node.js library or the global
16
- * @type Crypto
17
- */
18
- var webCrypto = nodeCrypto.webcrypto || globalThis.crypto;
19
- /**
20
- * The SubtleCrypto API for low level crypto operations.
21
- * @type SubtleCrypto
22
- */
23
- var subtleCrypto = webCrypto.subtle;
24
- var textEncoder = new TextEncoder();
25
- /**
26
- *
27
- * @param {*} length
28
- * @returns
29
- */
30
- function randomBytes(length) {
31
- return webCrypto.getRandomValues(Buffer.alloc(length));
32
- }
33
- async function md5(string) {
34
- try {
35
- return nodeCrypto.createHash("md5").update(string, "utf-8").digest("hex");
36
- } catch (e) {
37
- const data = typeof string === "string" ? textEncoder.encode(string) : string;
38
- const hash = await subtleCrypto.digest("MD5", data);
39
- return Array.from(new Uint8Array(hash)).map((b) => b.toString(16).padStart(2, "0")).join("");
40
- }
41
- }
42
- async function postgresMd5PasswordHash(user, password, salt) {
43
- const inner = await md5(password + user);
44
- return "md5" + await md5(Buffer.concat([Buffer.from(inner), salt]));
45
- }
46
- /**
47
- * Create a SHA-256 digest of the given data
48
- * @param {Buffer} data
49
- */
50
- async function sha256(text) {
51
- return await subtleCrypto.digest("SHA-256", text);
52
- }
53
- async function hashByName(hashName, text) {
54
- return await subtleCrypto.digest(hashName, text);
55
- }
56
- /**
57
- * Sign the message with the given key
58
- * @param {ArrayBuffer} keyBuffer
59
- * @param {string} msg
60
- */
61
- async function hmacSha256(keyBuffer, msg) {
62
- const key = await subtleCrypto.importKey("raw", keyBuffer, {
63
- name: "HMAC",
64
- hash: "SHA-256"
65
- }, false, ["sign"]);
66
- return await subtleCrypto.sign("HMAC", key, textEncoder.encode(msg));
67
- }
68
- /**
69
- * Derive a key from the password and salt
70
- * @param {string} password
71
- * @param {Uint8Array} salt
72
- * @param {number} iterations
73
- */
74
- async function deriveKey(password, salt, iterations) {
75
- const key = await subtleCrypto.importKey("raw", textEncoder.encode(password), "PBKDF2", false, ["deriveBits"]);
76
- const params = {
77
- name: "PBKDF2",
78
- hash: "SHA-256",
79
- salt,
80
- iterations
81
- };
82
- return await subtleCrypto.deriveBits(params, key, 256, ["deriveBits"]);
83
- }
84
- }));
85
- //#endregion
86
- export default require_utils_webcrypto();
87
- export { require_utils_webcrypto };
88
-
89
- //# sourceMappingURL=utils-webcrypto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils-webcrypto.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils-webcrypto.js"],"sourcesContent":["const nodeCrypto = require('crypto')\n\nmodule.exports = {\n postgresMd5PasswordHash,\n randomBytes,\n deriveKey,\n sha256,\n hashByName,\n hmacSha256,\n md5,\n}\n\n/**\n * The Web Crypto API - grabbed from the Node.js library or the global\n * @type Crypto\n */\n// eslint-disable-next-line no-undef\nconst webCrypto = nodeCrypto.webcrypto || globalThis.crypto\n/**\n * The SubtleCrypto API for low level crypto operations.\n * @type SubtleCrypto\n */\nconst subtleCrypto = webCrypto.subtle\nconst textEncoder = new TextEncoder()\n\n/**\n *\n * @param {*} length\n * @returns\n */\nfunction randomBytes(length) {\n return webCrypto.getRandomValues(Buffer.alloc(length))\n}\n\nasync function md5(string) {\n try {\n return nodeCrypto.createHash('md5').update(string, 'utf-8').digest('hex')\n } catch (e) {\n // `createHash()` failed so we are probably not in Node.js, use the WebCrypto API instead.\n // Note that the MD5 algorithm on WebCrypto is not available in Node.js.\n // This is why we cannot just use WebCrypto in all environments.\n const data = typeof string === 'string' ? textEncoder.encode(string) : string\n const hash = await subtleCrypto.digest('MD5', data)\n return Array.from(new Uint8Array(hash))\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n }\n}\n\n// See AuthenticationMD5Password at https://www.postgresql.org/docs/current/static/protocol-flow.html\nasync function postgresMd5PasswordHash(user, password, salt) {\n const inner = await md5(password + user)\n const outer = await md5(Buffer.concat([Buffer.from(inner), salt]))\n return 'md5' + outer\n}\n\n/**\n * Create a SHA-256 digest of the given data\n * @param {Buffer} data\n */\nasync function sha256(text) {\n return await subtleCrypto.digest('SHA-256', text)\n}\n\nasync function hashByName(hashName, text) {\n return await subtleCrypto.digest(hashName, text)\n}\n\n/**\n * Sign the message with the given key\n * @param {ArrayBuffer} keyBuffer\n * @param {string} msg\n */\nasync function hmacSha256(keyBuffer, msg) {\n const key = await subtleCrypto.importKey('raw', keyBuffer, { name: 'HMAC', hash: 'SHA-256' }, false, ['sign'])\n return await subtleCrypto.sign('HMAC', key, textEncoder.encode(msg))\n}\n\n/**\n * Derive a key from the password and salt\n * @param {string} password\n * @param {Uint8Array} salt\n * @param {number} iterations\n */\nasync function deriveKey(password, salt, iterations) {\n const key = await subtleCrypto.importKey('raw', textEncoder.encode(password), 'PBKDF2', false, ['deriveBits'])\n const params = { name: 'PBKDF2', hash: 'SHA-256', salt: salt, iterations: iterations }\n return await subtleCrypto.deriveBits(params, key, 32 * 8, ['deriveBits'])\n}\n"],"x_google_ignoreList":[0],"mappings":";;;CAAA,IAAM,aAAA,UAAqB,QAAQ;CAEnC,OAAO,UAAU;EACf;EACA;EACA;EACA;EACA;EACA;EACA;CACF;;;;;CAOA,IAAM,YAAY,WAAW,aAAa,WAAW;;;;;CAKrD,IAAM,eAAe,UAAU;CAC/B,IAAM,cAAc,IAAI,YAAY;;;;;;CAOpC,SAAS,YAAY,QAAQ;EAC3B,OAAO,UAAU,gBAAgB,OAAO,MAAM,MAAM,CAAC;CACvD;CAEA,eAAe,IAAI,QAAQ;EACzB,IAAI;GACF,OAAO,WAAW,WAAW,KAAK,EAAE,OAAO,QAAQ,OAAO,EAAE,OAAO,KAAK;EAC1E,SAAS,GAAG;GAIV,MAAM,OAAO,OAAO,WAAW,WAAW,YAAY,OAAO,MAAM,IAAI;GACvE,MAAM,OAAO,MAAM,aAAa,OAAO,OAAO,IAAI;GAClD,OAAO,MAAM,KAAK,IAAI,WAAW,IAAI,CAAC,EACnC,KAAK,MAAM,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,EAC1C,KAAK,EAAE;EACZ;CACF;CAGA,eAAe,wBAAwB,MAAM,UAAU,MAAM;EAC3D,MAAM,QAAQ,MAAM,IAAI,WAAW,IAAI;EAEvC,OAAO,QAAQ,MADK,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,KAAK,GAAG,IAAI,CAAC,CAAC;CAEnE;;;;;CAMA,eAAe,OAAO,MAAM;EAC1B,OAAO,MAAM,aAAa,OAAO,WAAW,IAAI;CAClD;CAEA,eAAe,WAAW,UAAU,MAAM;EACxC,OAAO,MAAM,aAAa,OAAO,UAAU,IAAI;CACjD;;;;;;CAOA,eAAe,WAAW,WAAW,KAAK;EACxC,MAAM,MAAM,MAAM,aAAa,UAAU,OAAO,WAAW;GAAE,MAAM;GAAQ,MAAM;EAAU,GAAG,OAAO,CAAC,MAAM,CAAC;EAC7G,OAAO,MAAM,aAAa,KAAK,QAAQ,KAAK,YAAY,OAAO,GAAG,CAAC;CACrE;;;;;;;CAQA,eAAe,UAAU,UAAU,MAAM,YAAY;EACnD,MAAM,MAAM,MAAM,aAAa,UAAU,OAAO,YAAY,OAAO,QAAQ,GAAG,UAAU,OAAO,CAAC,YAAY,CAAC;EAC7G,MAAM,SAAS;GAAE,MAAM;GAAU,MAAM;GAAiB;GAAkB;EAAW;EACrF,OAAO,MAAM,aAAa,WAAW,QAAQ,KAAK,KAAQ,CAAC,YAAY,CAAC;CAC1E"}
@@ -1,13 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_utils_legacy } from "./utils-legacy.js";
3
- import { require_utils_webcrypto } from "./utils-webcrypto.js";
4
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils.js
5
- var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
- if (parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15) module.exports = require_utils_legacy();
7
- else module.exports = require_utils_webcrypto();
8
- }));
9
- //#endregion
10
- export default require_utils();
11
- export { require_utils };
12
-
13
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/crypto/utils.js"],"sourcesContent":["'use strict'\n\nconst useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split('.')[0]) < 15\nif (useLegacyCrypto) {\n // We are on an old version of Node.js that requires legacy crypto utilities.\n module.exports = require('./utils-legacy')\n} else {\n module.exports = require('./utils-webcrypto')\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAGA,IADwB,SAAS,QAAQ,YAAY,QAAQ,SAAS,QAAQ,QAAQ,SAAS,KAAK,MAAM,GAAG,EAAE,EAAE,IAAI,IAGnH,OAAO,UAAA,qBAAA;MAEP,OAAO,UAAA,wBAAA"}
@@ -1,46 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_pg_types } from "../../../../pg-types@2.2.0/node_modules/pg-types/index.js";
3
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/defaults.js
4
- var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- var user;
6
- try {
7
- user = process.platform === "win32" ? process.env.USERNAME : process.env.USER;
8
- } catch {}
9
- module.exports = {
10
- host: "localhost",
11
- user,
12
- database: void 0,
13
- password: null,
14
- connectionString: void 0,
15
- port: 5432,
16
- rows: 0,
17
- binary: false,
18
- max: 10,
19
- idleTimeoutMillis: 3e4,
20
- client_encoding: "",
21
- ssl: false,
22
- application_name: void 0,
23
- fallback_application_name: void 0,
24
- options: void 0,
25
- parseInputDatesAsUTC: false,
26
- statement_timeout: false,
27
- lock_timeout: false,
28
- idle_in_transaction_session_timeout: false,
29
- query_timeout: false,
30
- connect_timeout: 0,
31
- keepalives: 1,
32
- keepalives_idle: 0
33
- };
34
- var pgTypes = require_pg_types();
35
- var parseBigInteger = pgTypes.getTypeParser(20, "text");
36
- var parseBigIntegerArray = pgTypes.getTypeParser(1016, "text");
37
- module.exports.__defineSetter__("parseInt8", function(val) {
38
- pgTypes.setTypeParser(20, "text", val ? pgTypes.getTypeParser(23, "text") : parseBigInteger);
39
- pgTypes.setTypeParser(1016, "text", val ? pgTypes.getTypeParser(1007, "text") : parseBigIntegerArray);
40
- });
41
- }));
42
- //#endregion
43
- export default require_defaults();
44
- export { require_defaults };
45
-
46
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/defaults.js"],"sourcesContent":["'use strict'\n\nlet user\ntry {\n user = process.platform === 'win32' ? process.env.USERNAME : process.env.USER\n} catch {\n // ignore, e.g., Deno without --allow-env\n}\n\nmodule.exports = {\n // database host. defaults to localhost\n host: 'localhost',\n\n // database user's name\n user,\n\n // name of database to connect\n database: undefined,\n\n // database user's password\n password: null,\n\n // a Postgres connection string to be used instead of setting individual connection items\n // NOTE: Setting this value will cause it to override any other value (such as database or user) defined\n // in the defaults object.\n connectionString: undefined,\n\n // database port\n port: 5432,\n\n // number of rows to return at a time from a prepared statement's\n // portal. 0 will return all rows at once\n rows: 0,\n\n // binary result mode\n binary: false,\n\n // Connection pool options - see https://github.com/brianc/node-pg-pool\n\n // number of connections to use in connection pool\n // 0 will disable connection pooling\n max: 10,\n\n // max milliseconds a client can go unused before it is removed\n // from the pool and destroyed\n idleTimeoutMillis: 30000,\n\n client_encoding: '',\n\n ssl: false,\n\n application_name: undefined,\n\n fallback_application_name: undefined,\n\n options: undefined,\n\n parseInputDatesAsUTC: false,\n\n // max milliseconds any query using this connection will execute for before timing out in error.\n // false=unlimited\n statement_timeout: false,\n\n // Abort any statement that waits longer than the specified duration in milliseconds while attempting to acquire a lock.\n // false=unlimited\n lock_timeout: false,\n\n // Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds\n // false=unlimited\n idle_in_transaction_session_timeout: false,\n\n // max milliseconds to wait for query to complete (client side)\n query_timeout: false,\n\n connect_timeout: 0,\n\n keepalives: 1,\n\n keepalives_idle: 0,\n}\n\nconst pgTypes = require('pg-types')\n// save default parsers\nconst parseBigInteger = pgTypes.getTypeParser(20, 'text')\nconst parseBigIntegerArray = pgTypes.getTypeParser(1016, 'text')\n\n// parse int8 so you can get your count values as actual numbers\nmodule.exports.__defineSetter__('parseInt8', function (val) {\n pgTypes.setTypeParser(20, 'text', val ? pgTypes.getTypeParser(23, 'text') : parseBigInteger)\n pgTypes.setTypeParser(1016, 'text', val ? pgTypes.getTypeParser(1007, 'text') : parseBigIntegerArray)\n})\n"],"x_google_ignoreList":[0],"mappings":";;;;CAEA,IAAI;CACJ,IAAI;EACF,OAAO,QAAQ,aAAa,UAAU,QAAQ,IAAI,WAAW,QAAQ,IAAI;CAC3E,QAAQ,CAER;CAEA,OAAO,UAAU;EAEf,MAAM;EAGN;EAGA,UAAU,KAAA;EAGV,UAAU;EAKV,kBAAkB,KAAA;EAGlB,MAAM;EAIN,MAAM;EAGN,QAAQ;EAMR,KAAK;EAIL,mBAAmB;EAEnB,iBAAiB;EAEjB,KAAK;EAEL,kBAAkB,KAAA;EAElB,2BAA2B,KAAA;EAE3B,SAAS,KAAA;EAET,sBAAsB;EAItB,mBAAmB;EAInB,cAAc;EAId,qCAAqC;EAGrC,eAAe;EAEf,iBAAiB;EAEjB,YAAY;EAEZ,iBAAiB;CACnB;CAEA,IAAM,UAAA,iBAAA;CAEN,IAAM,kBAAkB,QAAQ,cAAc,IAAI,MAAM;CACxD,IAAM,uBAAuB,QAAQ,cAAc,MAAM,MAAM;CAG/D,OAAO,QAAQ,iBAAiB,aAAa,SAAU,KAAK;EAC1D,QAAQ,cAAc,IAAI,QAAQ,MAAM,QAAQ,cAAc,IAAI,MAAM,IAAI,eAAe;EAC3F,QAAQ,cAAc,MAAM,QAAQ,MAAM,QAAQ,cAAc,MAAM,MAAM,IAAI,oBAAoB;CACtG,CAAC"}
@@ -1,71 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_pg_types } from "../../../../pg-types@2.2.0/node_modules/pg-types/index.js";
3
- import { require_defaults } from "./defaults.js";
4
- import { require_utils } from "./utils.js";
5
- import { require_type_overrides } from "./type-overrides.js";
6
- import { require_result } from "./result.js";
7
- import { require_dist } from "../../../../pg-protocol@1.13.0/node_modules/pg-protocol/dist/index.js";
8
- import { require_connection } from "./connection.js";
9
- import { require_client } from "./client.js";
10
- import { require_pg_pool } from "../../../../pg-pool@3.13.0_pg@8.20.0/node_modules/pg-pool/index.js";
11
- import { require_native } from "./native/index.js";
12
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/index.js
13
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14
- var Client = require_client();
15
- var defaults = require_defaults();
16
- var Connection = require_connection();
17
- var Result = require_result();
18
- var utils = require_utils();
19
- var Pool = require_pg_pool();
20
- var TypeOverrides = require_type_overrides();
21
- var { DatabaseError } = require_dist();
22
- var { escapeIdentifier, escapeLiteral } = require_utils();
23
- var poolFactory = (Client) => {
24
- return class BoundPool extends Pool {
25
- constructor(options) {
26
- super(options, Client);
27
- }
28
- };
29
- };
30
- var PG = function(clientConstructor) {
31
- this.defaults = defaults;
32
- this.Client = clientConstructor;
33
- this.Query = this.Client.Query;
34
- this.Pool = poolFactory(this.Client);
35
- this._pools = [];
36
- this.Connection = Connection;
37
- this.types = require_pg_types();
38
- this.DatabaseError = DatabaseError;
39
- this.TypeOverrides = TypeOverrides;
40
- this.escapeIdentifier = escapeIdentifier;
41
- this.escapeLiteral = escapeLiteral;
42
- this.Result = Result;
43
- this.utils = utils;
44
- };
45
- var clientConstructor = Client;
46
- var forceNative = false;
47
- try {
48
- forceNative = !!process.env.NODE_PG_FORCE_NATIVE;
49
- } catch {}
50
- if (forceNative) clientConstructor = require_native();
51
- module.exports = new PG(clientConstructor);
52
- Object.defineProperty(module.exports, "native", {
53
- configurable: true,
54
- enumerable: false,
55
- get() {
56
- let native = null;
57
- try {
58
- native = new PG(require_native());
59
- } catch (err) {
60
- if (err.code !== "MODULE_NOT_FOUND") throw err;
61
- }
62
- Object.defineProperty(module.exports, "native", { value: native });
63
- return native;
64
- }
65
- });
66
- }));
67
- //#endregion
68
- export default require_lib();
69
- export { require_lib };
70
-
71
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/index.js"],"sourcesContent":["'use strict'\n\nconst Client = require('./client')\nconst defaults = require('./defaults')\nconst Connection = require('./connection')\nconst Result = require('./result')\nconst utils = require('./utils')\nconst Pool = require('pg-pool')\nconst TypeOverrides = require('./type-overrides')\nconst { DatabaseError } = require('pg-protocol')\nconst { escapeIdentifier, escapeLiteral } = require('./utils')\n\nconst poolFactory = (Client) => {\n return class BoundPool extends Pool {\n constructor(options) {\n super(options, Client)\n }\n }\n}\n\nconst PG = function (clientConstructor) {\n this.defaults = defaults\n this.Client = clientConstructor\n this.Query = this.Client.Query\n this.Pool = poolFactory(this.Client)\n this._pools = []\n this.Connection = Connection\n this.types = require('pg-types')\n this.DatabaseError = DatabaseError\n this.TypeOverrides = TypeOverrides\n this.escapeIdentifier = escapeIdentifier\n this.escapeLiteral = escapeLiteral\n this.Result = Result\n this.utils = utils\n}\n\nlet clientConstructor = Client\n\nlet forceNative = false\ntry {\n forceNative = !!process.env.NODE_PG_FORCE_NATIVE\n} catch {\n // ignore, e.g., Deno without --allow-env\n}\n\nif (forceNative) {\n clientConstructor = require('./native')\n}\n\nmodule.exports = new PG(clientConstructor)\n\n// lazy require native module...the native module may not have installed\nObject.defineProperty(module.exports, 'native', {\n configurable: true,\n enumerable: false,\n get() {\n let native = null\n try {\n native = new PG(require('./native'))\n } catch (err) {\n if (err.code !== 'MODULE_NOT_FOUND') {\n throw err\n }\n }\n\n // overwrite module.exports.native so that getter is never called again\n Object.defineProperty(module.exports, 'native', {\n value: native,\n })\n\n return native\n },\n})\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;CAEA,IAAM,SAAA,eAAA;CACN,IAAM,WAAA,iBAAA;CACN,IAAM,aAAA,mBAAA;CACN,IAAM,SAAA,eAAA;CACN,IAAM,QAAA,cAAA;CACN,IAAM,OAAA,gBAAA;CACN,IAAM,gBAAA,uBAAA;CACN,IAAM,EAAE,kBAAA,aAAA;CACR,IAAM,EAAE,kBAAkB,kBAAA,cAAA;CAE1B,IAAM,eAAe,WAAW;EAC9B,OAAO,MAAM,kBAAkB,KAAK;GAClC,YAAY,SAAS;IACnB,MAAM,SAAS,MAAM;GACvB;EACF;CACF;CAEA,IAAM,KAAK,SAAU,mBAAmB;EACtC,KAAK,WAAW;EAChB,KAAK,SAAS;EACd,KAAK,QAAQ,KAAK,OAAO;EACzB,KAAK,OAAO,YAAY,KAAK,MAAM;EACnC,KAAK,SAAS,CAAC;EACf,KAAK,aAAa;EAClB,KAAK,QAAA,iBAAA;EACL,KAAK,gBAAgB;EACrB,KAAK,gBAAgB;EACrB,KAAK,mBAAmB;EACxB,KAAK,gBAAgB;EACrB,KAAK,SAAS;EACd,KAAK,QAAQ;CACf;CAEA,IAAI,oBAAoB;CAExB,IAAI,cAAc;CAClB,IAAI;EACF,cAAc,CAAC,CAAC,QAAQ,IAAI;CAC9B,QAAQ,CAER;CAEA,IAAI,aACF,oBAAA,eAAA;CAGF,OAAO,UAAU,IAAI,GAAG,iBAAiB;CAGzC,OAAO,eAAe,OAAO,SAAS,UAAU;EAC9C,cAAc;EACd,YAAY;EACZ,MAAM;GACJ,IAAI,SAAS;GACb,IAAI;IACF,SAAS,IAAI,GAAA,eAAA,CAAsB;GACrC,SAAS,KAAK;IACZ,IAAI,IAAI,SAAS,oBACf,MAAM;GAEV;GAGA,OAAO,eAAe,OAAO,SAAS,UAAU,EAC9C,OAAO,OACT,CAAC;GAED,OAAO;EACT;CACF,CAAC"}
@@ -1,226 +0,0 @@
1
- import { __commonJSMin, __require, __toCommonJS } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_type_overrides } from "../type-overrides.js";
3
- import { require_connection_parameters } from "../connection-parameters.js";
4
- import { __vite_optional_peer_dep_pg_native_pg_exports, init___vite_optional_peer_dep_pg_native_pg } from "../../../../../../../_virtual/__vite-optional-peer-dep_pg-native_pg.js";
5
- import { require_query } from "./query.js";
6
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/client.js
7
- var require_client = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8
- var nodeUtils = __require("util");
9
- var Native;
10
- try {
11
- Native = (init___vite_optional_peer_dep_pg_native_pg(), __toCommonJS(__vite_optional_peer_dep_pg_native_pg_exports));
12
- } catch (e) {
13
- throw e;
14
- }
15
- var TypeOverrides = require_type_overrides();
16
- var EventEmitter = __require("events").EventEmitter;
17
- var util = __require("util");
18
- var ConnectionParameters = require_connection_parameters();
19
- var NativeQuery = require_query();
20
- var queryQueueLengthDeprecationNotice = nodeUtils.deprecate(() => {}, "Calling client.query() when the client is already executing a query is deprecated and will be removed in pg@9.0. Use async/await or an external async flow control mechanism instead.");
21
- var Client = module.exports = function(config) {
22
- EventEmitter.call(this);
23
- config = config || {};
24
- this._Promise = config.Promise || global.Promise;
25
- this._types = new TypeOverrides(config.types);
26
- this.native = new Native({ types: this._types });
27
- this._queryQueue = [];
28
- this._ending = false;
29
- this._connecting = false;
30
- this._connected = false;
31
- this._queryable = true;
32
- const cp = this.connectionParameters = new ConnectionParameters(config);
33
- if (config.nativeConnectionString) cp.nativeConnectionString = config.nativeConnectionString;
34
- this.user = cp.user;
35
- Object.defineProperty(this, "password", {
36
- configurable: true,
37
- enumerable: false,
38
- writable: true,
39
- value: cp.password
40
- });
41
- this.database = cp.database;
42
- this.host = cp.host;
43
- this.port = cp.port;
44
- this.namedQueries = {};
45
- };
46
- Client.Query = NativeQuery;
47
- util.inherits(Client, EventEmitter);
48
- Client.prototype._errorAllQueries = function(err) {
49
- const enqueueError = (query) => {
50
- process.nextTick(() => {
51
- query.native = this.native;
52
- query.handleError(err);
53
- });
54
- };
55
- if (this._hasActiveQuery()) {
56
- enqueueError(this._activeQuery);
57
- this._activeQuery = null;
58
- }
59
- this._queryQueue.forEach(enqueueError);
60
- this._queryQueue.length = 0;
61
- };
62
- Client.prototype._connect = function(cb) {
63
- const self = this;
64
- if (this._connecting) {
65
- process.nextTick(() => cb(/* @__PURE__ */ new Error("Client has already been connected. You cannot reuse a client.")));
66
- return;
67
- }
68
- this._connecting = true;
69
- this.connectionParameters.getLibpqConnectionString(function(err, conString) {
70
- if (self.connectionParameters.nativeConnectionString) conString = self.connectionParameters.nativeConnectionString;
71
- if (err) return cb(err);
72
- self.native.connect(conString, function(err) {
73
- if (err) {
74
- self.native.end();
75
- return cb(err);
76
- }
77
- self._connected = true;
78
- self.native.on("error", function(err) {
79
- self._queryable = false;
80
- self._errorAllQueries(err);
81
- self.emit("error", err);
82
- });
83
- self.native.on("notification", function(msg) {
84
- self.emit("notification", {
85
- channel: msg.relname,
86
- payload: msg.extra
87
- });
88
- });
89
- self.emit("connect");
90
- self._pulseQueryQueue(true);
91
- cb(null, this);
92
- });
93
- });
94
- };
95
- Client.prototype.connect = function(callback) {
96
- if (callback) {
97
- this._connect(callback);
98
- return;
99
- }
100
- return new this._Promise((resolve, reject) => {
101
- this._connect((error) => {
102
- if (error) reject(error);
103
- else resolve(this);
104
- });
105
- });
106
- };
107
- Client.prototype.query = function(config, values, callback) {
108
- let query;
109
- let result;
110
- let readTimeout;
111
- let readTimeoutTimer;
112
- let queryCallback;
113
- if (config === null || config === void 0) throw new TypeError("Client was passed a null or undefined query");
114
- else if (typeof config.submit === "function") {
115
- readTimeout = config.query_timeout || this.connectionParameters.query_timeout;
116
- result = query = config;
117
- if (typeof values === "function") config.callback = values;
118
- } else {
119
- readTimeout = config.query_timeout || this.connectionParameters.query_timeout;
120
- query = new NativeQuery(config, values, callback);
121
- if (!query.callback) {
122
- let resolveOut, rejectOut;
123
- result = new this._Promise((resolve, reject) => {
124
- resolveOut = resolve;
125
- rejectOut = reject;
126
- }).catch((err) => {
127
- Error.captureStackTrace(err);
128
- throw err;
129
- });
130
- query.callback = (err, res) => err ? rejectOut(err) : resolveOut(res);
131
- }
132
- }
133
- if (readTimeout) {
134
- queryCallback = query.callback || (() => {});
135
- readTimeoutTimer = setTimeout(() => {
136
- const error = /* @__PURE__ */ new Error("Query read timeout");
137
- process.nextTick(() => {
138
- query.handleError(error, this.connection);
139
- });
140
- queryCallback(error);
141
- query.callback = () => {};
142
- const index = this._queryQueue.indexOf(query);
143
- if (index > -1) this._queryQueue.splice(index, 1);
144
- this._pulseQueryQueue();
145
- }, readTimeout);
146
- query.callback = (err, res) => {
147
- clearTimeout(readTimeoutTimer);
148
- queryCallback(err, res);
149
- };
150
- }
151
- if (!this._queryable) {
152
- query.native = this.native;
153
- process.nextTick(() => {
154
- query.handleError(/* @__PURE__ */ new Error("Client has encountered a connection error and is not queryable"));
155
- });
156
- return result;
157
- }
158
- if (this._ending) {
159
- query.native = this.native;
160
- process.nextTick(() => {
161
- query.handleError(/* @__PURE__ */ new Error("Client was closed and is not queryable"));
162
- });
163
- return result;
164
- }
165
- if (this._queryQueue.length > 0) queryQueueLengthDeprecationNotice();
166
- this._queryQueue.push(query);
167
- this._pulseQueryQueue();
168
- return result;
169
- };
170
- Client.prototype.end = function(cb) {
171
- const self = this;
172
- this._ending = true;
173
- if (!this._connected) this.once("connect", this.end.bind(this, cb));
174
- let result;
175
- if (!cb) result = new this._Promise(function(resolve, reject) {
176
- cb = (err) => err ? reject(err) : resolve();
177
- });
178
- this.native.end(function() {
179
- self._connected = false;
180
- self._errorAllQueries(/* @__PURE__ */ new Error("Connection terminated"));
181
- process.nextTick(() => {
182
- self.emit("end");
183
- if (cb) cb();
184
- });
185
- });
186
- return result;
187
- };
188
- Client.prototype._hasActiveQuery = function() {
189
- return this._activeQuery && this._activeQuery.state !== "error" && this._activeQuery.state !== "end";
190
- };
191
- Client.prototype._pulseQueryQueue = function(initialConnection) {
192
- if (!this._connected) return;
193
- if (this._hasActiveQuery()) return;
194
- const query = this._queryQueue.shift();
195
- if (!query) {
196
- if (!initialConnection) this.emit("drain");
197
- return;
198
- }
199
- this._activeQuery = query;
200
- query.submit(this);
201
- const self = this;
202
- query.once("_done", function() {
203
- self._pulseQueryQueue();
204
- });
205
- };
206
- Client.prototype.cancel = function(query) {
207
- if (this._activeQuery === query) this.native.cancel(function() {});
208
- else if (this._queryQueue.indexOf(query) !== -1) this._queryQueue.splice(this._queryQueue.indexOf(query), 1);
209
- };
210
- Client.prototype.ref = function() {};
211
- Client.prototype.unref = function() {};
212
- Client.prototype.setTypeParser = function(oid, format, parseFn) {
213
- return this._types.setTypeParser(oid, format, parseFn);
214
- };
215
- Client.prototype.getTypeParser = function(oid, format) {
216
- return this._types.getTypeParser(oid, format);
217
- };
218
- Client.prototype.isConnected = function() {
219
- return this._connected;
220
- };
221
- }));
222
- //#endregion
223
- export default require_client();
224
- export { require_client };
225
-
226
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/client.js"],"sourcesContent":["const nodeUtils = require('util')\n// eslint-disable-next-line\nvar Native\n// eslint-disable-next-line no-useless-catch\ntry {\n // Wrap this `require()` in a try-catch to avoid upstream bundlers from complaining that this might not be available since it is an optional import\n Native = require('pg-native')\n} catch (e) {\n throw e\n}\nconst TypeOverrides = require('../type-overrides')\nconst EventEmitter = require('events').EventEmitter\nconst util = require('util')\nconst ConnectionParameters = require('../connection-parameters')\n\nconst NativeQuery = require('./query')\n\nconst queryQueueLengthDeprecationNotice = nodeUtils.deprecate(\n () => {},\n 'Calling client.query() when the client is already executing a query is deprecated and will be removed in pg@9.0. Use async/await or an external async flow control mechanism instead.'\n)\n\nconst Client = (module.exports = function (config) {\n EventEmitter.call(this)\n config = config || {}\n\n this._Promise = config.Promise || global.Promise\n this._types = new TypeOverrides(config.types)\n\n this.native = new Native({\n types: this._types,\n })\n\n this._queryQueue = []\n this._ending = false\n this._connecting = false\n this._connected = false\n this._queryable = true\n\n // keep these on the object for legacy reasons\n // for the time being. TODO: deprecate all this jazz\n const cp = (this.connectionParameters = new ConnectionParameters(config))\n if (config.nativeConnectionString) cp.nativeConnectionString = config.nativeConnectionString\n this.user = cp.user\n\n // \"hiding\" the password so it doesn't show up in stack traces\n // or if the client is console.logged\n Object.defineProperty(this, 'password', {\n configurable: true,\n enumerable: false,\n writable: true,\n value: cp.password,\n })\n this.database = cp.database\n this.host = cp.host\n this.port = cp.port\n\n // a hash to hold named queries\n this.namedQueries = {}\n})\n\nClient.Query = NativeQuery\n\nutil.inherits(Client, EventEmitter)\n\nClient.prototype._errorAllQueries = function (err) {\n const enqueueError = (query) => {\n process.nextTick(() => {\n query.native = this.native\n query.handleError(err)\n })\n }\n\n if (this._hasActiveQuery()) {\n enqueueError(this._activeQuery)\n this._activeQuery = null\n }\n\n this._queryQueue.forEach(enqueueError)\n this._queryQueue.length = 0\n}\n\n// connect to the backend\n// pass an optional callback to be called once connected\n// or with an error if there was a connection error\nClient.prototype._connect = function (cb) {\n const self = this\n\n if (this._connecting) {\n process.nextTick(() => cb(new Error('Client has already been connected. You cannot reuse a client.')))\n return\n }\n\n this._connecting = true\n\n this.connectionParameters.getLibpqConnectionString(function (err, conString) {\n if (self.connectionParameters.nativeConnectionString) conString = self.connectionParameters.nativeConnectionString\n if (err) return cb(err)\n self.native.connect(conString, function (err) {\n if (err) {\n self.native.end()\n return cb(err)\n }\n\n // set internal states to connected\n self._connected = true\n\n // handle connection errors from the native layer\n self.native.on('error', function (err) {\n self._queryable = false\n self._errorAllQueries(err)\n self.emit('error', err)\n })\n\n self.native.on('notification', function (msg) {\n self.emit('notification', {\n channel: msg.relname,\n payload: msg.extra,\n })\n })\n\n // signal we are connected now\n self.emit('connect')\n self._pulseQueryQueue(true)\n\n cb(null, this)\n })\n })\n}\n\nClient.prototype.connect = function (callback) {\n if (callback) {\n this._connect(callback)\n return\n }\n\n return new this._Promise((resolve, reject) => {\n this._connect((error) => {\n if (error) {\n reject(error)\n } else {\n resolve(this)\n }\n })\n })\n}\n\n// send a query to the server\n// this method is highly overloaded to take\n// 1) string query, optional array of parameters, optional function callback\n// 2) object query with {\n// string query\n// optional array values,\n// optional function callback instead of as a separate parameter\n// optional string name to name & cache the query plan\n// optional string rowMode = 'array' for an array of results\n// }\nClient.prototype.query = function (config, values, callback) {\n let query\n let result\n let readTimeout\n let readTimeoutTimer\n let queryCallback\n\n if (config === null || config === undefined) {\n throw new TypeError('Client was passed a null or undefined query')\n } else if (typeof config.submit === 'function') {\n readTimeout = config.query_timeout || this.connectionParameters.query_timeout\n result = query = config\n // accept query(new Query(...), (err, res) => { }) style\n if (typeof values === 'function') {\n config.callback = values\n }\n } else {\n readTimeout = config.query_timeout || this.connectionParameters.query_timeout\n query = new NativeQuery(config, values, callback)\n if (!query.callback) {\n let resolveOut, rejectOut\n result = new this._Promise((resolve, reject) => {\n resolveOut = resolve\n rejectOut = reject\n }).catch((err) => {\n Error.captureStackTrace(err)\n throw err\n })\n query.callback = (err, res) => (err ? rejectOut(err) : resolveOut(res))\n }\n }\n\n if (readTimeout) {\n queryCallback = query.callback || (() => {})\n\n readTimeoutTimer = setTimeout(() => {\n const error = new Error('Query read timeout')\n\n process.nextTick(() => {\n query.handleError(error, this.connection)\n })\n\n queryCallback(error)\n\n // we already returned an error,\n // just do nothing if query completes\n query.callback = () => {}\n\n // Remove from queue\n const index = this._queryQueue.indexOf(query)\n if (index > -1) {\n this._queryQueue.splice(index, 1)\n }\n\n this._pulseQueryQueue()\n }, readTimeout)\n\n query.callback = (err, res) => {\n clearTimeout(readTimeoutTimer)\n queryCallback(err, res)\n }\n }\n\n if (!this._queryable) {\n query.native = this.native\n process.nextTick(() => {\n query.handleError(new Error('Client has encountered a connection error and is not queryable'))\n })\n return result\n }\n\n if (this._ending) {\n query.native = this.native\n process.nextTick(() => {\n query.handleError(new Error('Client was closed and is not queryable'))\n })\n return result\n }\n\n if (this._queryQueue.length > 0) {\n queryQueueLengthDeprecationNotice()\n }\n\n this._queryQueue.push(query)\n this._pulseQueryQueue()\n return result\n}\n\n// disconnect from the backend server\nClient.prototype.end = function (cb) {\n const self = this\n\n this._ending = true\n\n if (!this._connected) {\n this.once('connect', this.end.bind(this, cb))\n }\n let result\n if (!cb) {\n result = new this._Promise(function (resolve, reject) {\n cb = (err) => (err ? reject(err) : resolve())\n })\n }\n\n this.native.end(function () {\n self._connected = false\n\n self._errorAllQueries(new Error('Connection terminated'))\n\n process.nextTick(() => {\n self.emit('end')\n if (cb) cb()\n })\n })\n return result\n}\n\nClient.prototype._hasActiveQuery = function () {\n return this._activeQuery && this._activeQuery.state !== 'error' && this._activeQuery.state !== 'end'\n}\n\nClient.prototype._pulseQueryQueue = function (initialConnection) {\n if (!this._connected) {\n return\n }\n if (this._hasActiveQuery()) {\n return\n }\n const query = this._queryQueue.shift()\n if (!query) {\n if (!initialConnection) {\n this.emit('drain')\n }\n return\n }\n this._activeQuery = query\n query.submit(this)\n const self = this\n query.once('_done', function () {\n self._pulseQueryQueue()\n })\n}\n\n// attempt to cancel an in-progress query\nClient.prototype.cancel = function (query) {\n if (this._activeQuery === query) {\n this.native.cancel(function () {})\n } else if (this._queryQueue.indexOf(query) !== -1) {\n this._queryQueue.splice(this._queryQueue.indexOf(query), 1)\n }\n}\n\nClient.prototype.ref = function () {}\nClient.prototype.unref = function () {}\n\nClient.prototype.setTypeParser = function (oid, format, parseFn) {\n return this._types.setTypeParser(oid, format, parseFn)\n}\n\nClient.prototype.getTypeParser = function (oid, format) {\n return this._types.getTypeParser(oid, format)\n}\n\nClient.prototype.isConnected = function () {\n return this._connected\n}\n"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,11 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_client } from "./client.js";
3
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/index.js
4
- var require_native = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- module.exports = require_client();
6
- }));
7
- //#endregion
8
- export default require_native();
9
- export { require_native };
10
-
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/index.js"],"sourcesContent":["'use strict'\nmodule.exports = require('./client')\n"],"x_google_ignoreList":[0],"mappings":";;;;CACA,OAAO,UAAA,eAAA"}
@@ -1,117 +0,0 @@
1
- import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_utils } from "../utils.js";
3
- //#region ../../node_modules/.pnpm/pg@8.20.0/node_modules/pg/lib/native/query.js
4
- var require_query = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- var EventEmitter = __require("events").EventEmitter;
6
- var util = __require("util");
7
- var utils = require_utils();
8
- var NativeQuery = module.exports = function(config, values, callback) {
9
- EventEmitter.call(this);
10
- config = utils.normalizeQueryConfig(config, values, callback);
11
- this.text = config.text;
12
- this.values = config.values;
13
- this.name = config.name;
14
- this.queryMode = config.queryMode;
15
- this.callback = config.callback;
16
- this.state = "new";
17
- this._arrayMode = config.rowMode === "array";
18
- this._emitRowEvents = false;
19
- this.on("newListener", function(event) {
20
- if (event === "row") this._emitRowEvents = true;
21
- }.bind(this));
22
- };
23
- util.inherits(NativeQuery, EventEmitter);
24
- var errorFieldMap = {
25
- sqlState: "code",
26
- statementPosition: "position",
27
- messagePrimary: "message",
28
- context: "where",
29
- schemaName: "schema",
30
- tableName: "table",
31
- columnName: "column",
32
- dataTypeName: "dataType",
33
- constraintName: "constraint",
34
- sourceFile: "file",
35
- sourceLine: "line",
36
- sourceFunction: "routine"
37
- };
38
- NativeQuery.prototype.handleError = function(err) {
39
- const fields = this.native.pq.resultErrorFields();
40
- if (fields) for (const key in fields) {
41
- const normalizedFieldName = errorFieldMap[key] || key;
42
- err[normalizedFieldName] = fields[key];
43
- }
44
- if (this.callback) this.callback(err);
45
- else this.emit("error", err);
46
- this.state = "error";
47
- };
48
- NativeQuery.prototype.then = function(onSuccess, onFailure) {
49
- return this._getPromise().then(onSuccess, onFailure);
50
- };
51
- NativeQuery.prototype.catch = function(callback) {
52
- return this._getPromise().catch(callback);
53
- };
54
- NativeQuery.prototype._getPromise = function() {
55
- if (this._promise) return this._promise;
56
- this._promise = new Promise(function(resolve, reject) {
57
- this._once("end", resolve);
58
- this._once("error", reject);
59
- }.bind(this));
60
- return this._promise;
61
- };
62
- NativeQuery.prototype.submit = function(client) {
63
- this.state = "running";
64
- const self = this;
65
- this.native = client.native;
66
- client.native.arrayMode = this._arrayMode;
67
- let after = function(err, rows, results) {
68
- client.native.arrayMode = false;
69
- setImmediate(function() {
70
- self.emit("_done");
71
- });
72
- if (err) return self.handleError(err);
73
- if (self._emitRowEvents) if (results.length > 1) rows.forEach((rowOfRows, i) => {
74
- rowOfRows.forEach((row) => {
75
- self.emit("row", row, results[i]);
76
- });
77
- });
78
- else rows.forEach(function(row) {
79
- self.emit("row", row, results);
80
- });
81
- self.state = "end";
82
- self.emit("end", results);
83
- if (self.callback) self.callback(null, results);
84
- };
85
- if (process.domain) after = process.domain.bind(after);
86
- if (this.name) {
87
- if (this.name.length > 63) {
88
- console.error("Warning! Postgres only supports 63 characters for query names.");
89
- console.error("You supplied %s (%s)", this.name, this.name.length);
90
- console.error("This can cause conflicts and silent errors executing queries");
91
- }
92
- const values = (this.values || []).map(utils.prepareValue);
93
- if (client.namedQueries[this.name]) {
94
- if (this.text && client.namedQueries[this.name] !== this.text) {
95
- const err = /* @__PURE__ */ new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);
96
- return after(err);
97
- }
98
- return client.native.execute(this.name, values, after);
99
- }
100
- return client.native.prepare(this.name, this.text, values.length, function(err) {
101
- if (err) return after(err);
102
- client.namedQueries[self.name] = self.text;
103
- return self.native.execute(self.name, values, after);
104
- });
105
- } else if (this.values) {
106
- if (!Array.isArray(this.values)) return after(/* @__PURE__ */ new Error("Query values must be an array"));
107
- const vals = this.values.map(utils.prepareValue);
108
- client.native.query(this.text, vals, after);
109
- } else if (this.queryMode === "extended") client.native.query(this.text, [], after);
110
- else client.native.query(this.text, after);
111
- };
112
- }));
113
- //#endregion
114
- export default require_query();
115
- export { require_query };
116
-
117
- //# sourceMappingURL=query.js.map