Skip to content

Typescript: SQL stored procedures  #4

Description

Hello, in typescript, how can I call a stored procedure to make a POST with parameters for example registering users

const sqlOutput = ouput.sql({
    commandText: 'RegisterUser',
    commandType: 'StoredProcedure',
    connectionStringSetting: 'SqlConnectionString',
});

export async function httpTrigger1(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {
    context.log('HTTP trigger and SQL input binding function processed a request.');

   
}

app.http('httpTrigger1, {
    methods: ['POST'],
    authLevel: 'anonymous',
    extraOutputs: [sqlOutput],
    handler: registerTrainer
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions