@effect/sql-pglite 4.0.0-rc.117 → 4.0.0

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 (45) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +4 -4
  3. package/README.md +17 -6
  4. package/ai-docs/package.json +1 -1
  5. package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +1 -1
  6. package/ai-docs/src/01_effect/06_running/20_layer-launch.ts +1 -1
  7. package/ai-docs/src/03_stream/30_encoding.ts +1 -1
  8. package/ai-docs/src/08_observability/20_otlp-tracing.ts +2 -2
  9. package/ai-docs/src/08_observability/index.md +1 -1
  10. package/ai-docs/src/40_sql/10_basics.ts +2 -2
  11. package/ai-docs/src/40_sql/index.md +1 -1
  12. package/ai-docs/src/50_http-client/10_basics.ts +1 -1
  13. package/ai-docs/src/51_http-server/10_basics.ts +2 -2
  14. package/ai-docs/src/51_http-server/20_testing.ts +2 -2
  15. package/ai-docs/src/51_http-server/fixtures/api/Api.ts +1 -1
  16. package/ai-docs/src/51_http-server/fixtures/api/Authorization.ts +1 -1
  17. package/ai-docs/src/51_http-server/fixtures/api/System.ts +1 -1
  18. package/ai-docs/src/51_http-server/fixtures/api/Users.ts +1 -1
  19. package/ai-docs/src/51_http-server/fixtures/domain/User.ts +1 -1
  20. package/ai-docs/src/51_http-server/fixtures/server/Users/http.ts +1 -1
  21. package/ai-docs/src/51_http-server/fixtures/server/Users.ts +1 -1
  22. package/ai-docs/src/60_child-process/10_working-with-child-processes.ts +1 -1
  23. package/ai-docs/src/60_child-process/index.md +1 -1
  24. package/ai-docs/src/70_cli/10_basics.ts +1 -1
  25. package/ai-docs/src/70_cli/index.md +1 -1
  26. package/ai-docs/src/71_ai/10_language-model.ts +2 -2
  27. package/ai-docs/src/71_ai/20_tools.ts +2 -2
  28. package/ai-docs/src/71_ai/30_chat.ts +2 -2
  29. package/ai-docs/src/80_cluster/10_entities.ts +3 -3
  30. package/dist/PgliteClient.d.ts +23 -5
  31. package/dist/PgliteClient.d.ts.map +1 -1
  32. package/dist/PgliteClient.js +13 -4
  33. package/dist/PgliteClient.js.map +1 -1
  34. package/dist/PgliteMigrator.d.ts +4 -4
  35. package/dist/PgliteMigrator.d.ts.map +1 -1
  36. package/dist/PgliteMigrator.js +2 -2
  37. package/dist/PgliteMigrator.js.map +1 -1
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1 -0
  41. package/dist/index.js.map +1 -1
  42. package/package.json +3 -3
  43. package/src/PgliteClient.ts +25 -7
  44. package/src/PgliteMigrator.ts +4 -4
  45. package/src/index.ts +1 -0
package/AGENTS.md CHANGED
@@ -302,7 +302,7 @@ Use it when your Effect programs need testable current time, safe parsing, stabl
302
302
 
303
303
  Effect has built-in support for structured logging, distributed tracing, and
304
304
  metrics. For exporting telemetry, use the lightweight Otlp modules from
305
- `effect/unstable/observability` in new projects, or use
305
+ `effect/observability` in new projects, or use
306
306
  `@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
307
307
  setup.
308
308
 
@@ -344,7 +344,7 @@ if (Predicate.isObject(thing)) {
344
344
 
345
345
  ## Working with SQL databases
346
346
 
347
- Use the `effect/unstable/sql` modules together with a driver package such as
347
+ Use the `effect/sql` modules together with a driver package such as
348
348
  `@effect/sql-sqlite-node` to access SQL databases. Define domain models with
349
349
  `Model.Class` to derive schemas for the database and JSON boundaries, run
350
350
  migrations, and write type-safe queries.
@@ -372,13 +372,13 @@ Build http clients with the `HttpClient` module.
372
372
 
373
373
  ## Working with child processes
374
374
 
375
- Use the `effect/unstable/process` modules to define child processes and run them with `ChildProcessSpawner`.
375
+ Use the `effect/process` modules to define child processes and run them with `ChildProcessSpawner`.
376
376
 
377
377
  - **[Working with child processes](./ai-docs/src/60_child-process/10_working-with-child-processes.ts)**: This example shows how to collect process output, compose pipelines, and stream long-running command output.
378
378
 
379
379
  ## Building CLI applications
380
380
 
381
- Use the "effect/unstable/cli" modules to build CLI applications. These modules
381
+ Use the "effect/cli" modules to build CLI applications. These modules
382
382
  provide utilities for parsing command-line arguments, handling user input, and
383
383
  managing the flow of a CLI application.
384
384
 
package/CLAUDE.md CHANGED
@@ -302,7 +302,7 @@ Use it when your Effect programs need testable current time, safe parsing, stabl
302
302
 
303
303
  Effect has built-in support for structured logging, distributed tracing, and
304
304
  metrics. For exporting telemetry, use the lightweight Otlp modules from
305
- `effect/unstable/observability` in new projects, or use
305
+ `effect/observability` in new projects, or use
306
306
  `@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
307
307
  setup.
308
308
 
@@ -344,7 +344,7 @@ if (Predicate.isObject(thing)) {
344
344
 
345
345
  ## Working with SQL databases
346
346
 
347
- Use the `effect/unstable/sql` modules together with a driver package such as
347
+ Use the `effect/sql` modules together with a driver package such as
348
348
  `@effect/sql-sqlite-node` to access SQL databases. Define domain models with
349
349
  `Model.Class` to derive schemas for the database and JSON boundaries, run
350
350
  migrations, and write type-safe queries.
@@ -372,13 +372,13 @@ Build http clients with the `HttpClient` module.
372
372
 
373
373
  ## Working with child processes
374
374
 
375
- Use the `effect/unstable/process` modules to define child processes and run them with `ChildProcessSpawner`.
375
+ Use the `effect/process` modules to define child processes and run them with `ChildProcessSpawner`.
376
376
 
377
377
  - **[Working with child processes](./ai-docs/src/60_child-process/10_working-with-child-processes.ts)**: This example shows how to collect process output, compose pipelines, and stream long-running command output.
378
378
 
379
379
  ## Building CLI applications
380
380
 
381
- Use the "effect/unstable/cli" modules to build CLI applications. These modules
381
+ Use the "effect/cli" modules to build CLI applications. These modules
382
382
  provide utilities for parsing command-line arguments, handling user input, and
383
383
  managing the flow of a CLI application.
384
384
 
package/README.md CHANGED
@@ -5,9 +5,25 @@ An Effect SQL client for [PGlite](https://pglite.dev), a WASM build of PostgreSQ
5
5
  ## Installation
6
6
 
7
7
  ```sh
8
- npm install effect@rc @effect/sql-pglite@rc
8
+ npm install effect @effect/sql-pglite
9
9
  ```
10
10
 
11
+ ## Links
12
+
13
+ - [Website](https://effect.website): documentation, guides, and news.
14
+ - [Reference](https://effect.website/docs/v4/api/sql-pglite): API documentation for this package.
15
+ - [Discord](https://discord.gg/effect-ts): ask questions, share what you're building, and talk to the core team.
16
+ - [Community](https://effect.website/community-hub): meetups and events, or bring Effect to your own.
17
+ - [Issues](https://github.com/Effect-TS/effect/issues): bug reports and feature requests.
18
+
19
+ ## Let's talk
20
+
21
+ Whether your team is considering Effect, rolling it out, or already running it in production, we'd love to hear from you: what you're building, what works, and what you need from Effect next.
22
+
23
+ - **Talk to the maintainers.** Introduce your team on [Discord](https://discord.gg/effect-ts) or email [contact@effectful.co](mailto:contact@effectful.co). We're happy to connect privately on Slack or Discord for feedback and help with adoption.
24
+ - **Production support.** We're exploring how to better support teams running Effect in production. If your organization has specific support needs, let's discuss them.
25
+ - **Adoption help.** Our [adoption partners](https://effect.website/adoption-partners) offer implementation, consulting, team extension, training, and commercial support.
26
+
11
27
  ## LISTEN / NOTIFY
12
28
 
13
29
  `listen` is a scoped subscription that returns after the listener is installed.
@@ -26,8 +42,3 @@ const program = Effect.gen(function*() {
26
42
  return yield* Queue.take(notifications)
27
43
  })
28
44
  ```
29
-
30
- ## Documentation
31
-
32
- - [Effect website](https://effect.website)
33
- - [API reference](https://effect.website/docs/v4/api/sql-pglite)
@@ -27,7 +27,7 @@
27
27
  "@effect/sql-sqlite-wasm": "workspace:*",
28
28
  "@effect/vitest": "workspace:*",
29
29
  "effect": "workspace:*",
30
- "hono": "^4.13.8",
30
+ "hono": "^4.13.9",
31
31
  "nodemailer": "^10.0.10"
32
32
  },
33
33
  "devDependencies": {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { PgClient } from "@effect/sql-pg"
9
9
  import { Array, Config, Context, Effect, Layer, type Option, Schema } from "effect"
10
- import { SqlClient, SqlError } from "effect/unstable/sql"
10
+ import { SqlClient, SqlError } from "effect/sql"
11
11
 
12
12
  // Define a layer for the SqlClient service
13
13
  export const SqlClientLayer: Layer.Layer<
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { NodeHttpServer, NodeRuntime } from "@effect/platform-node"
7
7
  import { Effect, Layer } from "effect"
8
- import { HttpRouter, HttpServerResponse } from "effect/unstable/http"
8
+ import { HttpRouter, HttpServerResponse } from "effect/http"
9
9
  import { createServer } from "node:http"
10
10
 
11
11
  // Build a tiny HTTP app with a health-check endpoint.
@@ -5,7 +5,7 @@
5
5
  * decode and encode streams of structured data.
6
6
  */
7
7
  import { DateTime, Schema, Stream } from "effect"
8
- import { Ndjson, SchemaBinary } from "effect/unstable/encoding"
8
+ import { Ndjson, SchemaBinary } from "effect/encoding"
9
9
 
10
10
  // SchemaBinary derives a framed binary decoder directly from a schema.
11
11
  export const schemaBinaryDecoder = SchemaBinary.decode(Schema.Struct({
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { NodeRuntime } from "@effect/platform-node"
7
7
  import { Context, Effect, Layer } from "effect"
8
- import { FetchHttpClient } from "effect/unstable/http"
9
- import { OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/unstable/observability"
8
+ import { FetchHttpClient } from "effect/http"
9
+ import { OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/observability"
10
10
 
11
11
  // Configure OTLP span export.
12
12
  export const OtlpTracingLayer = OtlpTracer.layer({
@@ -2,6 +2,6 @@
2
2
 
3
3
  Effect has built-in support for structured logging, distributed tracing, and
4
4
  metrics. For exporting telemetry, use the lightweight Otlp modules from
5
- `effect/unstable/observability` in new projects, or use
5
+ `effect/observability` in new projects, or use
6
6
  `@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
7
7
  setup.
@@ -7,8 +7,8 @@
7
7
  import { NodeRuntime } from "@effect/platform-node"
8
8
  import { SqliteClient, SqliteMigrator } from "@effect/sql-sqlite-node"
9
9
  import { Context, Effect, Layer, Schema } from "effect"
10
- import { Model } from "effect/unstable/schema"
11
- import { SqlClient, SqlModel, SqlSchema } from "effect/unstable/sql"
10
+ import { Model } from "effect/schema"
11
+ import { SqlClient, SqlModel, SqlSchema } from "effect/sql"
12
12
 
13
13
  // Use a branded string for the group id, so it cannot be mixed up with other
14
14
  // string ids in the application.
@@ -1,6 +1,6 @@
1
1
  ## Working with SQL databases
2
2
 
3
- Use the `effect/unstable/sql` modules together with a driver package such as
3
+ Use the `effect/sql` modules together with a driver package such as
4
4
  `@effect/sql-sqlite-node` to access SQL databases. Define domain models with
5
5
  `Model.Class` to derive schemas for the database and JSON boundaries, run
6
6
  migrations, and write type-safe queries.
@@ -4,7 +4,7 @@
4
4
  * Define a service that uses the HttpClient module to fetch data from an external API
5
5
  */
6
6
  import { Context, Effect, flow, Layer, Schedule, Schema } from "effect"
7
- import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http"
7
+ import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http"
8
8
 
9
9
  class Todo extends Schema.Class<Todo>("Todo")({
10
10
  userId: Schema.Int,
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { NodeHttpServer, NodeRuntime } from "@effect/platform-node"
8
8
  import { Context, Effect, flow, Layer, Schedule } from "effect"
9
- import { FetchHttpClient, HttpClient, HttpClientRequest, HttpRouter, HttpServer } from "effect/unstable/http"
10
- import { HttpApiBuilder, HttpApiClient, HttpApiMiddleware, HttpApiScalar } from "effect/unstable/httpapi"
9
+ import { FetchHttpClient, HttpClient, HttpClientRequest, HttpRouter, HttpServer } from "effect/http"
10
+ import { HttpApiBuilder, HttpApiClient, HttpApiMiddleware, HttpApiScalar } from "effect/http-api"
11
11
  import { createServer } from "node:http"
12
12
  // Api definitions should **always** be seperate from the server implementation,
13
13
  // so that they can be shared between the server and client without leaking
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { assert, layer } from "@effect/vitest"
8
8
  import { Effect, Layer } from "effect"
9
- import { HttpClientRequest, HttpServer } from "effect/unstable/http"
10
- import { HttpApiMiddleware, HttpApiTest } from "effect/unstable/httpapi"
9
+ import { HttpClientRequest, HttpServer } from "effect/http"
10
+ import { HttpApiMiddleware, HttpApiTest } from "effect/http-api"
11
11
  import { Api } from "./fixtures/api/Api.ts"
12
12
  import { Authorization } from "./fixtures/api/Authorization.ts"
13
13
  import { UserId } from "./fixtures/domain/User.ts"
@@ -1,4 +1,4 @@
1
- import { HttpApi, OpenApi } from "effect/unstable/httpapi"
1
+ import { HttpApi, OpenApi } from "effect/http-api"
2
2
  import { SystemApi } from "./System.ts"
3
3
  import { UsersApiGroup } from "./Users.ts"
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { Context, Schema } from "effect"
2
- import { HttpApiMiddleware, HttpApiSecurity } from "effect/unstable/httpapi"
2
+ import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api"
3
3
  import type { User } from "../domain/User.ts"
4
4
 
5
5
  export class CurrentUser extends Context.Service<CurrentUser, User>()("acme/HttpApi/Authorization/CurrentUser") {}
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi"
1
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"
2
2
 
3
3
  // Top level groups are added to the root of the derived HttpApiClient.
4
4
  //
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect"
2
- import { HttpApiEndpoint, HttpApiError, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi"
2
+ import { HttpApiEndpoint, HttpApiError, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"
3
3
  import { User, UserId } from "../domain/User.ts"
4
4
  import { SearchQueryTooShort, UserNotFound } from "../domain/UserErrors.ts"
5
5
  import { Authorization } from "./Authorization.ts"
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect"
2
- import { Model } from "effect/unstable/schema"
2
+ import { Model } from "effect/schema"
3
3
 
4
4
  export const UserId = Schema.String.pipe(Schema.brand("UserId"))
5
5
  export type UserId = typeof UserId.Type
@@ -1,5 +1,5 @@
1
1
  import { Effect, Layer } from "effect"
2
- import { HttpApiBuilder, HttpApiError } from "effect/unstable/httpapi"
2
+ import { HttpApiBuilder, HttpApiError } from "effect/http-api"
3
3
  import { Api } from "../../api/Api.ts"
4
4
  import { CurrentUser } from "../../api/Authorization.ts"
5
5
  import { AuthorizationLayer } from "../Authorization.ts"
@@ -1,6 +1,6 @@
1
1
  import { SqliteClient, SqliteMigrator } from "@effect/sql-sqlite-node"
2
2
  import { Context, Effect, Layer, Schema } from "effect"
3
- import { SqlClient, SqlModel, SqlSchema } from "effect/unstable/sql"
3
+ import { SqlClient, SqlModel, SqlSchema } from "effect/sql"
4
4
  import { User } from "../domain/User.ts"
5
5
  import type { UserId } from "../domain/User.ts"
6
6
  import { SearchQueryTooShort, UserNotFound, UsersError } from "../domain/UserErrors.ts"
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { NodeServices } from "@effect/platform-node"
7
7
  import { Console, Context, Effect, Layer, Schema, Stream, String } from "effect"
8
- import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
8
+ import { ChildProcess, ChildProcessSpawner } from "effect/process"
9
9
 
10
10
  export class DevToolsError extends Schema.TaggedError<DevToolsError>()("DevToolsError", {
11
11
  cause: Schema.Defect()
@@ -1,3 +1,3 @@
1
1
  ## Working with child processes
2
2
 
3
- Use the `effect/unstable/process` modules to define child processes and run them with `ChildProcessSpawner`.
3
+ Use the `effect/process` modules to define child processes and run them with `ChildProcessSpawner`.
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { NodeRuntime, NodeServices } from "@effect/platform-node"
8
8
  import { Console, Effect, Option, Schema } from "effect"
9
- import { Argument, Command, Flag } from "effect/unstable/cli"
9
+ import { Argument, Command, Flag } from "effect/cli"
10
10
 
11
11
  // You can define flags outside of commands and reuse them across multiple
12
12
  // commands.
@@ -1,5 +1,5 @@
1
1
  ## Building CLI applications
2
2
 
3
- Use the "effect/unstable/cli" modules to build CLI applications. These modules
3
+ Use the "effect/cli" modules to build CLI applications. These modules
4
4
  provide utilities for parsing command-line arguments, handling user input, and
5
5
  managing the flow of a CLI application.
@@ -7,8 +7,8 @@
7
7
  import { AnthropicClient, AnthropicLanguageModel } from "@effect/ai-anthropic"
8
8
  import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai"
9
9
  import { Config, Context, Effect, ExecutionPlan, Layer, Schema, Stream } from "effect"
10
- import { AiError, LanguageModel, Model, type Response } from "effect/unstable/ai"
11
- import { FetchHttpClient } from "effect/unstable/http"
10
+ import { AiError, LanguageModel, Model, type Response } from "effect/ai"
11
+ import { FetchHttpClient } from "effect/http"
12
12
  import { LaunchPlan } from "./fixtures/domain/LaunchPlan.ts"
13
13
 
14
14
  // You can use Config to create ai clients
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { OpenAiClient, OpenAiLanguageModel, OpenAiTool } from "@effect/ai-openai"
8
8
  import { Config, Context, Effect, Layer, Schema } from "effect"
9
- import { AiError, LanguageModel, Tool, Toolkit } from "effect/unstable/ai"
10
- import { FetchHttpClient } from "effect/unstable/http"
9
+ import { AiError, LanguageModel, Tool, Toolkit } from "effect/ai"
10
+ import { FetchHttpClient } from "effect/http"
11
11
 
12
12
  // ---------------------------------------------------------------------------
13
13
  // 1. Defining tools
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai"
8
8
  import { Config, Context, DateTime, Effect, Layer, Ref, Schema } from "effect"
9
- import { AiError, Chat, Prompt, Tool, Toolkit } from "effect/unstable/ai"
10
- import { FetchHttpClient } from "effect/unstable/http"
9
+ import { AiError, Chat, Prompt, Tool, Toolkit } from "effect/ai"
10
+ import { FetchHttpClient } from "effect/http"
11
11
 
12
12
  // ---------------------------------------------------------------------------
13
13
  // Provider setup
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import { NodeClusterSocket, NodeRuntime } from "@effect/platform-node"
7
7
  import { Effect, Layer, Ref, Schema } from "effect"
8
- import { ClusterSchema, Entity, TestRunner } from "effect/unstable/cluster"
9
- import { Rpc } from "effect/unstable/rpc"
10
- import type { SqlClient } from "effect/unstable/sql"
8
+ import { ClusterSchema, Entity, TestRunner } from "effect/cluster"
9
+ import { Rpc } from "effect/rpc"
10
+ import type { SqlClient } from "effect/sql"
11
11
 
12
12
  export const Increment = Rpc.make("Increment", {
13
13
  payload: { amount: Schema.Int },
@@ -9,6 +9,7 @@
9
9
  * types. It also provides layers and maps common PostgreSQL-style failures into
10
10
  * Effect SQL errors.
11
11
  *
12
+ * @stability unstable
12
13
  * @since 4.0.0
13
14
  */
14
15
  import { type PGliteInterface, type PGliteOptions } from "@electric-sql/pglite";
@@ -17,15 +18,16 @@ import * as Context from "effect/Context";
17
18
  import * as Effect from "effect/Effect";
18
19
  import * as Layer from "effect/Layer";
19
20
  import * as Queue from "effect/Queue";
21
+ import * as Reactivity from "effect/reactivity/Reactivity";
20
22
  import * as Scope from "effect/Scope";
21
- import * as Reactivity from "effect/unstable/reactivity/Reactivity";
22
- import * as Client from "effect/unstable/sql/SqlClient";
23
- import { SqlError } from "effect/unstable/sql/SqlError";
24
- import type { Custom, Fragment } from "effect/unstable/sql/Statement";
25
- import * as Statement from "effect/unstable/sql/Statement";
23
+ import * as Client from "effect/sql/SqlClient";
24
+ import { SqlError } from "effect/sql/SqlError";
25
+ import type { Custom, Fragment } from "effect/sql/Statement";
26
+ import * as Statement from "effect/sql/Statement";
26
27
  /**
27
28
  * Runtime type identifier used to mark `PgliteClient` values.
28
29
  *
30
+ * @stability unstable
29
31
  * @category type IDs
30
32
  * @since 4.0.0
31
33
  */
@@ -33,6 +35,7 @@ export declare const TypeId: TypeId;
33
35
  /**
34
36
  * Type-level identifier used to mark `PgliteClient` values.
35
37
  *
38
+ * @stability unstable
36
39
  * @category type IDs
37
40
  * @since 4.0.0
38
41
  */
@@ -40,6 +43,7 @@ export type TypeId = "~@effect/sql-pglite/PgliteClient";
40
43
  /**
41
44
  * PGlite-backed PostgreSQL client service, extending `SqlClient` with access to the PGlite instance, JSON fragments, LISTEN/NOTIFY, data directory dumps, and array type refresh.
42
45
  *
46
+ * @stability unstable
43
47
  * @category services
44
48
  * @since 4.0.0
45
49
  */
@@ -69,6 +73,7 @@ export interface PgliteClient extends Client.SqlClient {
69
73
  *
70
74
  * Use to access or provide a PGlite client through the Effect context.
71
75
  *
76
+ * @stability unstable
72
77
  * @category services
73
78
  * @since 4.0.0
74
79
  */
@@ -76,6 +81,7 @@ export declare const PgliteClient: Context.Service<PgliteClient, PgliteClient>;
76
81
  /**
77
82
  * Configuration for a PGlite client, either by supplying PGlite creation options or an existing live PGlite client.
78
83
  *
84
+ * @stability unstable
79
85
  * @category models
80
86
  * @since 4.0.0
81
87
  */
@@ -83,12 +89,14 @@ export type PgliteClientConfig = PgliteClientConfig.Create | PgliteClientConfig.
83
89
  /**
84
90
  * Namespace containing the configuration variants for `PgliteClient`.
85
91
  *
92
+ * @stability unstable
86
93
  * @since 4.0.0
87
94
  */
88
95
  export declare namespace PgliteClientConfig {
89
96
  /**
90
97
  * Shared PGlite client options for span attributes, query/result name transformations, and JSON value transformation.
91
98
  *
99
+ * @stability unstable
92
100
  * @category models
93
101
  * @since 4.0.0
94
102
  */
@@ -101,6 +109,7 @@ export declare namespace PgliteClientConfig {
101
109
  /**
102
110
  * Configuration used to create a managed PGlite instance from PGlite constructor options.
103
111
  *
112
+ * @stability unstable
104
113
  * @category models
105
114
  * @since 4.0.0
106
115
  */
@@ -109,6 +118,7 @@ export declare namespace PgliteClientConfig {
109
118
  /**
110
119
  * Configuration that uses an existing PGlite client. The supplied `liveClient` is caller-owned and is not closed by the Effect client.
111
120
  *
121
+ * @stability unstable
112
122
  * @category models
113
123
  * @since 4.0.0
114
124
  */
@@ -118,6 +128,7 @@ export declare namespace PgliteClientConfig {
118
128
  /**
119
129
  * Config-friendly subset of PGlite creation options, including data directory, username, database, relaxed durability, and shared transform options.
120
130
  *
131
+ * @stability unstable
121
132
  * @category models
122
133
  * @since 4.0.0
123
134
  */
@@ -131,6 +142,7 @@ export declare namespace PgliteClientConfig {
131
142
  /**
132
143
  * Creates a scoped PGlite SQL client. When no live client is supplied it creates and closes a PGlite instance; when `liveClient` is supplied, the caller retains ownership.
133
144
  *
145
+ * @stability unstable
134
146
  * @category constructors
135
147
  * @since 4.0.0
136
148
  */
@@ -138,6 +150,7 @@ export declare const make: (options?: PgliteClientConfig) => Effect.Effect<Pglit
138
150
  /**
139
151
  * Builds a `PgliteClient` around an existing PGlite instance, adding SQL client operations, LISTEN/NOTIFY, dump helpers, and serialized access.
140
152
  *
153
+ * @stability unstable
141
154
  * @category constructors
142
155
  * @since 4.0.0
143
156
  */
@@ -147,6 +160,7 @@ export declare const fromClient: (options: PgliteClientConfig.Base & {
147
160
  /**
148
161
  * Creates a layer from an effect that acquires a `PgliteClient`, providing both `PgliteClient` and `SqlClient`.
149
162
  *
163
+ * @stability unstable
150
164
  * @category layers
151
165
  * @since 4.0.0
152
166
  */
@@ -154,6 +168,7 @@ export declare const layerFrom: <E, R>(acquire: Effect.Effect<PgliteClient, E, R
154
168
  /**
155
169
  * Creates a layer from a `Config`-wrapped PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
156
170
  *
171
+ * @stability unstable
157
172
  * @category layers
158
173
  * @since 4.0.0
159
174
  */
@@ -161,6 +176,7 @@ export declare const layerConfig: (config: Config.Wrap<PgliteClientConfig.Config
161
176
  /**
162
177
  * Creates a layer from a concrete PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
163
178
  *
179
+ * @stability unstable
164
180
  * @category layers
165
181
  * @since 4.0.0
166
182
  */
@@ -168,6 +184,7 @@ export declare const layer: (config?: PgliteClientConfig | undefined) => Layer.L
168
184
  /**
169
185
  * Creates the PGlite statement compiler, using PostgreSQL `$1` placeholders, double-quoted identifiers, returning clauses, and optional JSON value transformation.
170
186
  *
187
+ * @stability unstable
171
188
  * @category constructors
172
189
  * @since 4.0.0
173
190
  */
@@ -175,6 +192,7 @@ export declare const makeCompiler: (transform?: (_: string) => string, transform
175
192
  /**
176
193
  * PGlite-specific custom statement fragments supported by the compiler, currently JSON parameter fragments.
177
194
  *
195
+ * @stability unstable
178
196
  * @category models
179
197
  * @since 4.0.0
180
198
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PgliteClient.d.ts","sourceRoot":"","sources":["../src/PgliteClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAU,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,OAAO,KAAK,UAAU,MAAM,uCAAuC,CAAA;AACnE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,EAQL,QAAQ,EAKT,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,MAAM,EAAE,MAA2C,CAAA;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,kCAAkC,CAAA;AAEvD;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,SAAS;IACpD,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,QAAQ,CAAA;IACv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AAM,CAAC,YAAY,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,UAAU,CAqFxE,CAAA;AAwEJ;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,CAAC,WACnB,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,KACzC,KAAK,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,UAAU,CAAC,CAMlD,CAAA;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,CACxB,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,KAC/C,KAAK,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,GAAG,QAAQ,CAM3E,CAAA;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,YACP,kBAAkB,GAAG,SAAS,KACtC,KAAK,CAAC,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,QAAQ,CAA4B,CAAA;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,eACX,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,8BAEhC,SAAS,CAAC,QAqCZ,CAAA;AAKD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAA;AAE7B;;;GAGG;AACH,UAAU,MAAO,SAAQ,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC;CAAG;AACrD,QAAA,MAAM,MAAM,yDAAqC,CAAA"}
@@ -9,6 +9,7 @@
9
9
  * types. It also provides layers and maps common PostgreSQL-style failures into
10
10
  * Effect SQL errors.
11
11
  *
12
+ * @stability unstable
12
13
  * @since 4.0.0
13
14
  */
14
15
  import { PGlite } from "@electric-sql/pglite";
@@ -18,16 +19,17 @@ import * as Effect from "effect/Effect";
18
19
  import * as Fiber from "effect/Fiber";
19
20
  import * as Layer from "effect/Layer";
20
21
  import * as Queue from "effect/Queue";
22
+ import * as Reactivity from "effect/reactivity/Reactivity";
21
23
  import * as Scope from "effect/Scope";
22
24
  import * as Semaphore from "effect/Semaphore";
25
+ import * as Client from "effect/sql/SqlClient";
26
+ import { AuthenticationError, AuthorizationError, ConnectionError, ConstraintError, DeadlockError, LockTimeoutError, SerializationError, SqlError, SqlSyntaxError, StatementTimeoutError, UniqueViolation, UnknownError } from "effect/sql/SqlError";
27
+ import * as Statement from "effect/sql/Statement";
23
28
  import * as Stream from "effect/Stream";
24
- import * as Reactivity from "effect/unstable/reactivity/Reactivity";
25
- import * as Client from "effect/unstable/sql/SqlClient";
26
- import { AuthenticationError, AuthorizationError, ConnectionError, ConstraintError, DeadlockError, LockTimeoutError, SerializationError, SqlError, SqlSyntaxError, StatementTimeoutError, UniqueViolation, UnknownError } from "effect/unstable/sql/SqlError";
27
- import * as Statement from "effect/unstable/sql/Statement";
28
29
  /**
29
30
  * Runtime type identifier used to mark `PgliteClient` values.
30
31
  *
32
+ * @stability unstable
31
33
  * @category type IDs
32
34
  * @since 4.0.0
33
35
  */
@@ -39,6 +41,7 @@ export const TypeId = "~@effect/sql-pglite/PgliteClient";
39
41
  *
40
42
  * Use to access or provide a PGlite client through the Effect context.
41
43
  *
44
+ * @stability unstable
42
45
  * @category services
43
46
  * @since 4.0.0
44
47
  */
@@ -46,6 +49,7 @@ export const PgliteClient = /*#__PURE__*/Context.Service("@effect/sql-pglite/Pgl
46
49
  /**
47
50
  * Creates a scoped PGlite SQL client. When no live client is supplied it creates and closes a PGlite instance; when `liveClient` is supplied, the caller retains ownership.
48
51
  *
52
+ * @stability unstable
49
53
  * @category constructors
50
54
  * @since 4.0.0
51
55
  */
@@ -70,6 +74,7 @@ export const make = (options = {}) => Effect.gen(function* () {
70
74
  /**
71
75
  * Builds a `PgliteClient` around an existing PGlite instance, adding SQL client operations, LISTEN/NOTIFY, dump helpers, and serialized access.
72
76
  *
77
+ * @stability unstable
73
78
  * @category constructors
74
79
  * @since 4.0.0
75
80
  */
@@ -190,6 +195,7 @@ class PgliteConnection {
190
195
  /**
191
196
  * Creates a layer from an effect that acquires a `PgliteClient`, providing both `PgliteClient` and `SqlClient`.
192
197
  *
198
+ * @stability unstable
193
199
  * @category layers
194
200
  * @since 4.0.0
195
201
  */
@@ -197,6 +203,7 @@ export const layerFrom = acquire => Layer.effectContext(Effect.map(acquire, clie
197
203
  /**
198
204
  * Creates a layer from a `Config`-wrapped PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
199
205
  *
206
+ * @stability unstable
200
207
  * @category layers
201
208
  * @since 4.0.0
202
209
  */
@@ -204,6 +211,7 @@ export const layerConfig = config => layerFrom(Effect.flatMap(Config.unwrap(conf
204
211
  /**
205
212
  * Creates a layer from a concrete PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
206
213
  *
214
+ * @stability unstable
207
215
  * @category layers
208
216
  * @since 4.0.0
209
217
  */
@@ -211,6 +219,7 @@ export const layer = config => layerFrom(make(config));
211
219
  /**
212
220
  * Creates the PGlite statement compiler, using PostgreSQL `$1` placeholders, double-quoted identifiers, returning clauses, and optional JSON value transformation.
213
221
  *
222
+ * @stability unstable
214
223
  * @category constructors
215
224
  * @since 4.0.0
216
225
  */
@@ -1 +1 @@
1
- {"version":3,"file":"PgliteClient.js","names":[],"sources":["../src/PgliteClient.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;AAaA,SAAS,MAAM,QAAkD,sBAAsB;AACvF,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,OAAO,MAAM,gBAAgB;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,K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,EAAE;MACpB,OAAO,IAAI,kBAAkB,CAAC,KAAK,CAAC;IACtC;IACA,IAAI,IAAI,KAAK,OAAO,EAAE;MACpB,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC;IACpC;IACA,IAAI,IAAI,KAAK,OAAO,EAAE;MACpB,OAAO,IAAI,qBAAqB,CAAC,KAAK,CAAC;IACzC;EACF;EACA,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC;AAChC,CAAC","ignoreList":[]}
@@ -10,13 +10,13 @@
10
10
  */
11
11
  import type * as Effect from "effect/Effect";
12
12
  import * as Layer from "effect/Layer";
13
- import * as Migrator from "effect/unstable/sql/Migrator";
14
- import type * as Client from "effect/unstable/sql/SqlClient";
15
- import type { SqlError } from "effect/unstable/sql/SqlError";
13
+ import * as Migrator from "effect/sql/Migrator";
14
+ import type * as Client from "effect/sql/SqlClient";
15
+ import type { SqlError } from "effect/sql/SqlError";
16
16
  /**
17
17
  * @since 4.0.0
18
18
  */
19
- export * from "effect/unstable/sql/Migrator";
19
+ export * from "effect/sql/Migrator";
20
20
  /**
21
21
  * Runs SQL migrations using the configured `SqlClient`, returning the migrations that were applied.
22
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"PgliteMigrator.d.ts","sourceRoot":"","sources":["../src/PgliteMigrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAA;AACxD,OAAO,KAAK,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAE5D;;GAEG;AACH,cAAc,8BAA8B,CAAA;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,EAC3B,OAAO,EAAE,QAAQ,CAAC,eAA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,CAAC,KACnC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,GAAG,QAAQ,EAAE,MAAM,CAAC,SAAS,GAAG,CAAC,CAAsC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import * as Layer from "effect/Layer";
2
- import * as Migrator from "effect/unstable/sql/Migrator";
2
+ import * as Migrator from "effect/sql/Migrator";
3
3
  /**
4
4
  * @since 4.0.0
5
5
  */
6
- export * from "effect/unstable/sql/Migrator";
6
+ export * from "effect/sql/Migrator";
7
7
  /**
8
8
  * Runs SQL migrations using the configured `SqlClient`, returning the migrations that were applied.
9
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"PgliteMigrator.js","names":[],"sources":["../src/PgliteMigrator.ts"],"sourcesContent":[null],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,QAAQ,MAAM,8BAA8B;AAIxD;;;AAGA,cAAc,8BAA8B;AAE5C;;;;;;AAMA,OAAO,MAAM,GAAG,gBAMZ,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;AAErB;;;;;;AAMA,OAAO,MAAM,KAAK,GAChB,OAAoC,IAC6C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PgliteMigrator.js","names":[],"sources":["../src/PgliteMigrator.ts"],"sourcesContent":[null],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,QAAQ,MAAM,qBAAqB;AAI/C;;;AAGA,cAAc,qBAAqB;AAEnC;;;;;;AAMA,OAAO,MAAM,GAAG,gBAMZ,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;AAErB;;;;;;AAMA,OAAO,MAAM,KAAK,GAChB,OAAoC,IAC6C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC","ignoreList":[]}
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * @since 4.0.0
3
3
  */
4
4
  /**
5
+ * @stability unstable
5
6
  * @since 4.0.0
6
7
  */
7
8
  export * as PgliteClient from "./PgliteClient.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAEjD;;GAEG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;GAGG;AACH,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAEjD;;GAEG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
  // @barrel: Auto-generated exports. Do not edit manually.
5
5
  /**
6
+ * @stability unstable
6
7
  * @since 4.0.0
7
8
  */
8
9
  export * as PgliteClient from "./PgliteClient.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AAEA;;;AAGA,OAAO,KAAK,YAAY,MAAM,mBAAmB;AAEjD;;;AAGA,OAAO,KAAK,cAAc,MAAM,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AAEA;;;;AAIA,OAAO,KAAK,YAAY,MAAM,mBAAmB;AAEjD;;;AAGA,OAAO,KAAK,cAAc,MAAM,qBAAqB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/sql-pglite",
3
- "version": "4.0.0-rc.117",
3
+ "version": "4.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "A PGlite toolkit for Effect",
@@ -51,10 +51,10 @@
51
51
  "provenance": true
52
52
  },
53
53
  "devDependencies": {
54
- "effect": "^4.0.0-rc.117"
54
+ "effect": "^4.0.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "effect": "^4.0.0-rc.117"
57
+ "effect": "^4.0.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "@electric-sql/pglite": "^0.5.8"
@@ -9,6 +9,7 @@
9
9
  * types. It also provides layers and maps common PostgreSQL-style failures into
10
10
  * Effect SQL errors.
11
11
  *
12
+ * @stability unstable
12
13
  * @since 4.0.0
13
14
  */
14
15
  import { PGlite, type PGliteInterface, type PGliteOptions } from "@electric-sql/pglite"
@@ -18,12 +19,11 @@ import * as Effect from "effect/Effect"
18
19
  import * as Fiber from "effect/Fiber"
19
20
  import * as Layer from "effect/Layer"
20
21
  import * as Queue from "effect/Queue"
22
+ import * as Reactivity from "effect/reactivity/Reactivity"
21
23
  import * as Scope from "effect/Scope"
22
24
  import * as Semaphore from "effect/Semaphore"
23
- import * as Stream from "effect/Stream"
24
- import * as Reactivity from "effect/unstable/reactivity/Reactivity"
25
- import * as Client from "effect/unstable/sql/SqlClient"
26
- import type { Connection } from "effect/unstable/sql/SqlConnection"
25
+ import * as Client from "effect/sql/SqlClient"
26
+ import type { Connection } from "effect/sql/SqlConnection"
27
27
  import {
28
28
  AuthenticationError,
29
29
  AuthorizationError,
@@ -37,13 +37,15 @@ import {
37
37
  StatementTimeoutError,
38
38
  UniqueViolation,
39
39
  UnknownError
40
- } from "effect/unstable/sql/SqlError"
41
- import type { Custom, Fragment } from "effect/unstable/sql/Statement"
42
- import * as Statement from "effect/unstable/sql/Statement"
40
+ } from "effect/sql/SqlError"
41
+ import type { Custom, Fragment } from "effect/sql/Statement"
42
+ import * as Statement from "effect/sql/Statement"
43
+ import * as Stream from "effect/Stream"
43
44
 
44
45
  /**
45
46
  * Runtime type identifier used to mark `PgliteClient` values.
46
47
  *
48
+ * @stability unstable
47
49
  * @category type IDs
48
50
  * @since 4.0.0
49
51
  */
@@ -52,6 +54,7 @@ export const TypeId: TypeId = "~@effect/sql-pglite/PgliteClient"
52
54
  /**
53
55
  * Type-level identifier used to mark `PgliteClient` values.
54
56
  *
57
+ * @stability unstable
55
58
  * @category type IDs
56
59
  * @since 4.0.0
57
60
  */
@@ -60,6 +63,7 @@ export type TypeId = "~@effect/sql-pglite/PgliteClient"
60
63
  /**
61
64
  * PGlite-backed PostgreSQL client service, extending `SqlClient` with access to the PGlite instance, JSON fragments, LISTEN/NOTIFY, data directory dumps, and array type refresh.
62
65
  *
66
+ * @stability unstable
63
67
  * @category services
64
68
  * @since 4.0.0
65
69
  */
@@ -92,6 +96,7 @@ export interface PgliteClient extends Client.SqlClient {
92
96
  *
93
97
  * Use to access or provide a PGlite client through the Effect context.
94
98
  *
99
+ * @stability unstable
95
100
  * @category services
96
101
  * @since 4.0.0
97
102
  */
@@ -100,6 +105,7 @@ export const PgliteClient = Context.Service<PgliteClient>("@effect/sql-pglite/Pg
100
105
  /**
101
106
  * Configuration for a PGlite client, either by supplying PGlite creation options or an existing live PGlite client.
102
107
  *
108
+ * @stability unstable
103
109
  * @category models
104
110
  * @since 4.0.0
105
111
  */
@@ -108,12 +114,14 @@ export type PgliteClientConfig = PgliteClientConfig.Create | PgliteClientConfig.
108
114
  /**
109
115
  * Namespace containing the configuration variants for `PgliteClient`.
110
116
  *
117
+ * @stability unstable
111
118
  * @since 4.0.0
112
119
  */
113
120
  export declare namespace PgliteClientConfig {
114
121
  /**
115
122
  * Shared PGlite client options for span attributes, query/result name transformations, and JSON value transformation.
116
123
  *
124
+ * @stability unstable
117
125
  * @category models
118
126
  * @since 4.0.0
119
127
  */
@@ -127,6 +135,7 @@ export declare namespace PgliteClientConfig {
127
135
  /**
128
136
  * Configuration used to create a managed PGlite instance from PGlite constructor options.
129
137
  *
138
+ * @stability unstable
130
139
  * @category models
131
140
  * @since 4.0.0
132
141
  */
@@ -135,6 +144,7 @@ export declare namespace PgliteClientConfig {
135
144
  /**
136
145
  * Configuration that uses an existing PGlite client. The supplied `liveClient` is caller-owned and is not closed by the Effect client.
137
146
  *
147
+ * @stability unstable
138
148
  * @category models
139
149
  * @since 4.0.0
140
150
  */
@@ -145,6 +155,7 @@ export declare namespace PgliteClientConfig {
145
155
  /**
146
156
  * Config-friendly subset of PGlite creation options, including data directory, username, database, relaxed durability, and shared transform options.
147
157
  *
158
+ * @stability unstable
148
159
  * @category models
149
160
  * @since 4.0.0
150
161
  */
@@ -159,6 +170,7 @@ export declare namespace PgliteClientConfig {
159
170
  /**
160
171
  * Creates a scoped PGlite SQL client. When no live client is supplied it creates and closes a PGlite instance; when `liveClient` is supplied, the caller retains ownership.
161
172
  *
173
+ * @stability unstable
162
174
  * @category constructors
163
175
  * @since 4.0.0
164
176
  */
@@ -187,6 +199,7 @@ export const make = (
187
199
  /**
188
200
  * Builds a `PgliteClient` around an existing PGlite instance, adding SQL client operations, LISTEN/NOTIFY, dump helpers, and serialized access.
189
201
  *
202
+ * @stability unstable
190
203
  * @category constructors
191
204
  * @since 4.0.0
192
205
  */
@@ -356,6 +369,7 @@ class PgliteConnection implements Connection {
356
369
  /**
357
370
  * Creates a layer from an effect that acquires a `PgliteClient`, providing both `PgliteClient` and `SqlClient`.
358
371
  *
372
+ * @stability unstable
359
373
  * @category layers
360
374
  * @since 4.0.0
361
375
  */
@@ -372,6 +386,7 @@ export const layerFrom = <E, R>(
372
386
  /**
373
387
  * Creates a layer from a `Config`-wrapped PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
374
388
  *
389
+ * @stability unstable
375
390
  * @category layers
376
391
  * @since 4.0.0
377
392
  */
@@ -388,6 +403,7 @@ export const layerConfig: (
388
403
  /**
389
404
  * Creates a layer from a concrete PGlite client configuration, providing both `PgliteClient` and `SqlClient`.
390
405
  *
406
+ * @stability unstable
391
407
  * @category layers
392
408
  * @since 4.0.0
393
409
  */
@@ -398,6 +414,7 @@ export const layer = (
398
414
  /**
399
415
  * Creates the PGlite statement compiler, using PostgreSQL `$1` placeholders, double-quoted identifiers, returning clauses, and optional JSON value transformation.
400
416
  *
417
+ * @stability unstable
401
418
  * @category constructors
402
419
  * @since 4.0.0
403
420
  */
@@ -449,6 +466,7 @@ const escapeLiteral = (value: string) => `'${value.replace(/'/g, "''")}'`
449
466
  /**
450
467
  * PGlite-specific custom statement fragments supported by the compiler, currently JSON parameter fragments.
451
468
  *
469
+ * @stability unstable
452
470
  * @category models
453
471
  * @since 4.0.0
454
472
  */
@@ -10,14 +10,14 @@
10
10
  */
11
11
  import type * as Effect from "effect/Effect"
12
12
  import * as Layer from "effect/Layer"
13
- import * as Migrator from "effect/unstable/sql/Migrator"
14
- import type * as Client from "effect/unstable/sql/SqlClient"
15
- import type { SqlError } from "effect/unstable/sql/SqlError"
13
+ import * as Migrator from "effect/sql/Migrator"
14
+ import type * as Client from "effect/sql/SqlClient"
15
+ import type { SqlError } from "effect/sql/SqlError"
16
16
 
17
17
  /**
18
18
  * @since 4.0.0
19
19
  */
20
- export * from "effect/unstable/sql/Migrator"
20
+ export * from "effect/sql/Migrator"
21
21
 
22
22
  /**
23
23
  * Runs SQL migrations using the configured `SqlClient`, returning the migrations that were applied.
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  // @barrel: Auto-generated exports. Do not edit manually.
6
6
 
7
7
  /**
8
+ * @stability unstable
8
9
  * @since 4.0.0
9
10
  */
10
11
  export * as PgliteClient from "./PgliteClient.ts"