Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StoredProcedures

Operations for creating, upserting, or reading/querying all Stored Procedures.

For operations to read, replace, delete, or execute a specific, existing stored procedure by id, see container.storedProcedure().

Hierarchy

  • StoredProcedures

Index

Properties

Methods

Properties

container

container: Container

The parent Container.

Methods

create

query

  • Query all Stored Procedures.

    example

    Read all stored procedures to array.

    const querySpec: SqlQuerySpec = {
      query: "SELECT * FROM root r WHERE r.id = @sproc",
      parameters: [
        {name: "@sproc", value: "Todo"}
      ]
    };
    const {body: sprocList} = await containers.storedProcedures.query(querySpec).toArray();

    Parameters

    Returns QueryIterator<any>

  • Query all Stored Procedures.

    example

    Read all stored procedures to array.

    const querySpec: SqlQuerySpec = {
      query: "SELECT * FROM root r WHERE r.id = @sproc",
      parameters: [
        {name: "@sproc", value: "Todo"}
      ]
    };
    const {body: sprocList} = await containers.storedProcedures.query(querySpec).toArray();

    Type parameters

    • T

    Parameters

    Returns QueryIterator<T>

readAll

Generated using TypeDoc