Function sqlStringLiteral

  • Converts a JavaScript string into a format suitable for using in a LabKey SQL query. It will properly escape single quote characters.

    Parameters

    • str: string

      String to use in query

    Returns string

    The value formatted for use in a LabKey query.