UNPKG

1.4 kBTypeScriptView Raw
1// Copyright (c) .NET Foundation. All rights reserved.
2// Licensed under the MIT License.
3
4import { FunctionInput, FunctionOutput } from './index';
5
6export interface SqlInputOptions {
7 /**
8 * The Transact-SQL query command or name of the stored procedure executed by the binding.
9 */
10 commandText: string;
11
12 /**
13 * The command type value
14 */
15 commandType: 'Text' | 'StoredProcedure';
16
17 /**
18 * An app setting (or environment variable) with the connection string for the database against which the query or stored procedure is being executed
19 */
20 connectionStringSetting: string;
21
22 /**
23 * Zero or more parameter values passed to the command during execution as a single string.
24 * Must follow the format @param1=param1,@param2=param2.
25 * Neither the parameter name nor the parameter value can contain a comma (,) or an equals sign (=).
26 */
27 parameters?: string;
28}
29export type SqlInput = FunctionInput & SqlInputOptions;
30
31export interface SqlOutputOptions {
32 /**
33 * The name of the table being written to by the binding.
34 */
35 commandText: string;
36
37 /**
38 * An app setting (or environment variable) with the connection string for the database to which data is being written
39 */
40 connectionStringSetting: string;
41}
42export type SqlOutput = FunctionOutput & SqlOutputOptions;