@effect/sql-mssql 4.0.0-beta.73 → 4.0.0-beta.74
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.
- package/dist/MssqlClient.d.ts +1 -1
- package/dist/MssqlClient.js +1 -1
- package/dist/Procedure.d.ts +4 -4
- package/dist/Procedure.js +4 -4
- package/package.json +3 -3
- package/src/MssqlClient.ts +1 -1
- package/src/Procedure.ts +4 -4
package/dist/MssqlClient.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface MssqlClient extends Client.SqlClient {
|
|
|
85
85
|
* Use to access or provide a Microsoft SQL Server client through the Effect
|
|
86
86
|
* context.
|
|
87
87
|
*
|
|
88
|
-
* @category
|
|
88
|
+
* @category services
|
|
89
89
|
* @since 4.0.0
|
|
90
90
|
*/
|
|
91
91
|
export declare const MssqlClient: Context.Service<MssqlClient, MssqlClient>;
|
package/dist/MssqlClient.js
CHANGED
|
@@ -151,7 +151,7 @@ export const TypeId = /*#__PURE__*/Symbol.for("@effect/sql-mssql/MssqlClient");
|
|
|
151
151
|
* Use to access or provide a Microsoft SQL Server client through the Effect
|
|
152
152
|
* context.
|
|
153
153
|
*
|
|
154
|
-
* @category
|
|
154
|
+
* @category services
|
|
155
155
|
* @since 4.0.0
|
|
156
156
|
*/
|
|
157
157
|
export const MssqlClient = /*#__PURE__*/Context.Service("@effect/sql-mssql/MssqlClient");
|
package/dist/Procedure.d.ts
CHANGED
|
@@ -81,28 +81,28 @@ export declare const make: (name: string) => Procedure<{}, {}>;
|
|
|
81
81
|
/**
|
|
82
82
|
* Adds a typed input parameter to a SQL Server stored procedure definition.
|
|
83
83
|
*
|
|
84
|
-
* @category
|
|
84
|
+
* @category combinators
|
|
85
85
|
* @since 4.0.0
|
|
86
86
|
*/
|
|
87
87
|
export declare const param: <A>() => <N extends string, T extends DataType>(name: N, type: T, options?: ParameterOptions) => <I extends Record<string, Parameter.Parameter<any>>, O extends Record<string, Parameter.Parameter<any>>>(self: Procedure<I, O>) => Procedure<Simplify<I & { [K in N]: Parameter.Parameter<A>; }>, O>;
|
|
88
88
|
/**
|
|
89
89
|
* Adds a typed output parameter to a SQL Server stored procedure definition.
|
|
90
90
|
*
|
|
91
|
-
* @category
|
|
91
|
+
* @category combinators
|
|
92
92
|
* @since 4.0.0
|
|
93
93
|
*/
|
|
94
94
|
export declare const outputParam: <A>() => <N extends string, T extends DataType>(name: N, type: T, options?: ParameterOptions) => <I extends Record<string, Parameter.Parameter<any>>, O extends Record<string, Parameter.Parameter<any>>>(self: Procedure<I, O>) => Procedure<I, Simplify<O & { [K in N]: Parameter.Parameter<A>; }>>;
|
|
95
95
|
/**
|
|
96
96
|
* Sets the expected row type for a SQL Server stored procedure definition.
|
|
97
97
|
*
|
|
98
|
-
* @category
|
|
98
|
+
* @category combinators
|
|
99
99
|
* @since 4.0.0
|
|
100
100
|
*/
|
|
101
101
|
export declare const withRows: <A extends object = Row>() => <I extends Record<string, Parameter.Parameter<any>>, O extends Record<string, Parameter.Parameter<any>>>(self: Procedure<I, O>) => Procedure<I, O, A>;
|
|
102
102
|
/**
|
|
103
103
|
* Binds input values to a SQL Server stored procedure definition, producing a value that can be executed with `MssqlClient.call`.
|
|
104
104
|
*
|
|
105
|
-
* @category
|
|
105
|
+
* @category combinators
|
|
106
106
|
* @since 4.0.0
|
|
107
107
|
*/
|
|
108
108
|
export declare const compile: <I extends Record<string, Parameter.Parameter<any>>, O extends Record<string, Parameter.Parameter<any>>, A>(self: Procedure<I, O, A>) => (input: Procedure.ParametersRecord<I>) => ProcedureWithValues<I, O, A>;
|
package/dist/Procedure.js
CHANGED
|
@@ -67,7 +67,7 @@ export const make = name => {
|
|
|
67
67
|
/**
|
|
68
68
|
* Adds a typed input parameter to a SQL Server stored procedure definition.
|
|
69
69
|
*
|
|
70
|
-
* @category
|
|
70
|
+
* @category combinators
|
|
71
71
|
* @since 4.0.0
|
|
72
72
|
*/
|
|
73
73
|
export const param = () => (name, type, options) => self => ({
|
|
@@ -80,7 +80,7 @@ export const param = () => (name, type, options) => self => ({
|
|
|
80
80
|
/**
|
|
81
81
|
* Adds a typed output parameter to a SQL Server stored procedure definition.
|
|
82
82
|
*
|
|
83
|
-
* @category
|
|
83
|
+
* @category combinators
|
|
84
84
|
* @since 4.0.0
|
|
85
85
|
*/
|
|
86
86
|
export const outputParam = () => (name, type, options) => self => ({
|
|
@@ -93,14 +93,14 @@ export const outputParam = () => (name, type, options) => self => ({
|
|
|
93
93
|
/**
|
|
94
94
|
* Sets the expected row type for a SQL Server stored procedure definition.
|
|
95
95
|
*
|
|
96
|
-
* @category
|
|
96
|
+
* @category combinators
|
|
97
97
|
* @since 4.0.0
|
|
98
98
|
*/
|
|
99
99
|
export const withRows = () => self => self;
|
|
100
100
|
/**
|
|
101
101
|
* Binds input values to a SQL Server stored procedure definition, producing a value that can be executed with `MssqlClient.call`.
|
|
102
102
|
*
|
|
103
|
-
* @category
|
|
103
|
+
* @category combinators
|
|
104
104
|
* @since 4.0.0
|
|
105
105
|
*/
|
|
106
106
|
export const compile = self => input => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/sql-mssql",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.74",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Microsoft SQL Server toolkit for Effect",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"provenance": true
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"effect": "^4.0.0-beta.
|
|
46
|
+
"effect": "^4.0.0-beta.74"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"effect": "^4.0.0-beta.
|
|
49
|
+
"effect": "^4.0.0-beta.74"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"tedious": "^19.2.1"
|
package/src/MssqlClient.ts
CHANGED
|
@@ -214,7 +214,7 @@ export interface MssqlClient extends Client.SqlClient {
|
|
|
214
214
|
* Use to access or provide a Microsoft SQL Server client through the Effect
|
|
215
215
|
* context.
|
|
216
216
|
*
|
|
217
|
-
* @category
|
|
217
|
+
* @category services
|
|
218
218
|
* @since 4.0.0
|
|
219
219
|
*/
|
|
220
220
|
export const MssqlClient = Context.Service<MssqlClient>("@effect/sql-mssql/MssqlClient")
|
package/src/Procedure.ts
CHANGED
|
@@ -156,7 +156,7 @@ export const make = (name: string): Procedure<{}, {}> => {
|
|
|
156
156
|
/**
|
|
157
157
|
* Adds a typed input parameter to a SQL Server stored procedure definition.
|
|
158
158
|
*
|
|
159
|
-
* @category
|
|
159
|
+
* @category combinators
|
|
160
160
|
* @since 4.0.0
|
|
161
161
|
*/
|
|
162
162
|
export const param = <A>() =>
|
|
@@ -181,7 +181,7 @@ export const param = <A>() =>
|
|
|
181
181
|
/**
|
|
182
182
|
* Adds a typed output parameter to a SQL Server stored procedure definition.
|
|
183
183
|
*
|
|
184
|
-
* @category
|
|
184
|
+
* @category combinators
|
|
185
185
|
* @since 4.0.0
|
|
186
186
|
*/
|
|
187
187
|
export const outputParam = <A>() =>
|
|
@@ -206,7 +206,7 @@ export const outputParam = <A>() =>
|
|
|
206
206
|
/**
|
|
207
207
|
* Sets the expected row type for a SQL Server stored procedure definition.
|
|
208
208
|
*
|
|
209
|
-
* @category
|
|
209
|
+
* @category combinators
|
|
210
210
|
* @since 4.0.0
|
|
211
211
|
*/
|
|
212
212
|
export const withRows = <A extends object = Row>() =>
|
|
@@ -220,7 +220,7 @@ export const withRows = <A extends object = Row>() =>
|
|
|
220
220
|
/**
|
|
221
221
|
* Binds input values to a SQL Server stored procedure definition, producing a value that can be executed with `MssqlClient.call`.
|
|
222
222
|
*
|
|
223
|
-
* @category
|
|
223
|
+
* @category combinators
|
|
224
224
|
* @since 4.0.0
|
|
225
225
|
*/
|
|
226
226
|
export const compile = <
|