Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

effect__sql__Statement.yaml

46 lines3.5 KB

1"@effect/sql/Statement#currentTransformer":
2 replacement: "effect/sql/Statement#CurrentTransformer"
3 note: "Capitalized and changed from FiberRef<Option<Transformer>> to Context.Reference<Transformer | undefined>."
4"@effect/sql/Statement#custom":
5 replacement: "effect/sql/Statement#custom"
6 note: "Retained, but returns a Custom segment and uses paramA/paramB/paramC; wrap it with Statement.fragment when a Fragment is required."
7"@effect/sql/Statement#defaultEscape":
8 replacement: "effect/sql/Statement#defaultEscape"
9 note: "Moved with the same signature."
10"@effect/sql/Statement#FragmentId":
11 replacement: "effect/sql/Statement#FragmentTypeId"
12 note: "Renamed to FragmentTypeId, now with a different Symbol.for key. Fragment values store the symbol itself under this key instead of a function; prefer Statement.isFragment for runtime checks."
13"@effect/sql/Statement#Fragment":
14 replacement: "effect/sql/Statement#Fragment"
15 note: "Moved with the same segments field, but the brand key is now Statement.FragmentTypeId and its value is the symbol itself rather than a function. Build fragments with the sql template or Statement.fragment and check them with Statement.isFragment; sql interpolation binds unbranded objects as parameters."
16"@effect/sql/Statement#join":
17 replacement: "effect/sql/Statement#join"
18 note: "Moved with the same empty, single, and multiple-clause behavior."
19"@effect/sql/Statement#make":
20 replacement: "effect/sql/Statement#make"
21 note: "Moved with the same constructor inputs."
22"@effect/sql/Statement#or":
23 replacement: "effect/sql/Statement#or"
24 note: "Moved unchanged."
25"@effect/sql/Statement#setTransformer":
26 replacement: "Layer.succeed(Statement.CurrentTransformer, transformer)"
27 note: "The helper was removed; provide the CurrentTransformer reference as a layer."
28"@effect/sql/Statement#Statement":
29 replacement: "effect/sql/Statement#Statement"
30 note: "Moved; the nested Transformer type is now top-level and its callback receives Fiber.Fiber rather than FiberRefs.FiberRefs."
31"@effect/sql/Statement#unsafeFragment":
32 replacement: "Statement.fragment([Statement.literal(sql, params)])"
33 note: "The helper was removed; construct the low-level fragment explicitly, or use the active constructor's sql.unsafe for an executable statement."
34"@effect/sql/Statement#withTransformer":
35 replacement: "Effect.provideService(Statement.CurrentTransformer, transformer)"
36 note: "The helper was removed; locally provide the transformer reference around the effect."
37"@effect/sql/Statement#withTransformerDisabled":
38 replacement: "Effect.provideService(Statement.CurrentTransformer, undefined)"
39 note: "The helper was removed; locally provide undefined for the transformer reference."
40"@effect/sql/Statement#makeCompiler":
41 replacement: "effect/sql/Statement#makeCompiler"
42 note: "Moved to core Effect; the constructor options are exposed as Statement.CompilerOptions and retain the dialect-specific callbacks. onRecordUpdate now receives the updateValues alias already escaped with onIdentifier(alias, true); insert it as is."
43"@effect/sql/Statement#Constructor":
44 include: true
45 replacement: "effect/sql/Statement#Constructor"
46 note: "Moved to core Effect. sql.updateValues now escapes its alias as an identifier without applying name transforms; pass a bare alias such as \"data\" rather than pre-quoted SQL, and quote mixed-case PostgreSQL aliases where the query references them. sql.insert and sql.updateValues now require a non-empty array of rows; narrow array inputs with Array.isReadonlyArrayNonEmpty first."