Bluestep JS Documentation
    Preparing search index...

    Class DbViewPreparedStatement

    Handle ? in advanced options Queries.

    ps.setString(1, "value");
    ps.setNull(2);
    ps.setLong(3, 123456789);
    ps.setBoolean(4, true);
    ps.setDouble(5, 3.14);
    ps.setTimestamp(6, new Date());
    ps.setObjectByType(7, "jsonb", "{"key":"value"}");
    Index

    Constructors

    Methods

    • Returns the maximum column index that has been set.

      Returns void

    • Sets a boolean parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: boolean

        The boolean value to set for the parameter.

      Returns void

    • Sets a double parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: number

        The double value to set for the parameter.

      Returns void

    • Sets a int parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: number

        The long value to set for the parameter.

      Returns void

    • Sets a long parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: number

        The long value to set for the parameter.

      Returns void

    • Sets a null parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      Returns void

    • Sets a String parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • type: "jsonb" | "json"

        The type of the PGobject to set. For example, 'jsonb' or 'json'.

      • value: string

        The String value to set for the parameter.

      Returns void

    • Sets a String parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: string

        The String value to set for the parameter.

      Returns void

    • Sets a Date parameter at the specified index in the prepared statement.

      Parameters

      • index: number

        The index of the parameter to set, starting from 1.

      • value: number | InstantOrDate

        The Date value to set for the parameter.

      Returns void