Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

btrim

  • btrim<s>(str: Col<s, string>): Col<s, string>
  • btrim<s>(str: Col<s, string>, characters: Col<s, string>): Col<s, string>
  • Remove all space characters from the start and end of string.

    SQL equivalent: btrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, string>

  • Remove the longest string consisting only of characters in characters from the start and end of string.

    SQL equivalent: btrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>
    • characters: Col<s, string>

    Returns Col<s, string>

charLength

  • charLength<s>(str: Col<s, string>): Col<s, number>
  • Number of characters in string

    SQL equivalent: char_length, length

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, number>

chr

  • chr<s>(code: Col<s, number>): Col<s, string>
  • Character with the given code. For UTF8 the argument is treated as a Unicode code point. For other multibyte encodings the argument must designate an ASCII character. The NULL (0) character is not allowed because text data types cannot store such bytes.

    SQL equivalent: chr

    Type parameters

    • s

    Parameters

    • code: Col<s, number>

    Returns Col<s, string>

lower

  • lower<s>(str: Col<s, string>): Col<s, string>
  • Convert string to lower case

    SQL equivalent: lower

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, string>

ltrim

  • ltrim<s>(str: Col<s, string>): Col<s, string>
  • ltrim<s>(str: Col<s, string>, characters: Col<s, string>): Col<s, string>
  • Remove all space characters from the start of string.

    SQL equivalent: ltrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, string>

  • Remove the longest string consisting only of characters in characters from the start of string.

    SQL equivalent: ltrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>
    • characters: Col<s, string>

    Returns Col<s, string>

rtrim

  • rtrim<s>(str: Col<s, string>): Col<s, string>
  • rtrim<s>(str: Col<s, string>, characters: Col<s, string>): Col<s, string>
  • Remove all space characters from the end of string.

    SQL equivalent: rtrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, string>

  • Remove the longest string consisting only of characters in characters from the end of string.

    SQL equivalent: rtrim

    Type parameters

    • s

    Parameters

    • str: Col<s, string>
    • characters: Col<s, string>

    Returns Col<s, string>

strpos

  • strpos<s>(haystack: Col<s, string>, needle: Col<s, string>): Col<s, number>
  • Location of specified substring. The first character in the haystack is 1 (not 0). A result of 0 means that the substring was not found.

    SQL equivalent: strpos, position

    Type parameters

    • s

    Parameters

    • haystack: Col<s, string>
    • needle: Col<s, string>

    Returns Col<s, number>

substr

  • substr<s>(str: Col<s, string>, from: Col<s, number>): Col<s, string>
  • substr<s>(str: Col<s, string>, from: Col<s, number>, count: Col<s, number>): Col<s, string>
  • Extract substring. The first character in the string has index 1. Extracts starting from "from" until the end of the string.

    SQL equivalent: substr, substring

    Type parameters

    • s

    Parameters

    • str: Col<s, string>
    • from: Col<s, number>

    Returns Col<s, string>

  • Extract substring. The first character in the string has index 1. Extracts starting from "from" for "count" characters.

    SQL equivalent: substr, substring

    Type parameters

    • s

    Parameters

    • str: Col<s, string>
    • from: Col<s, number>
    • count: Col<s, number>

    Returns Col<s, string>

toHex

  • toHex<s>(num: Col<s, number>): Col<s, string>
  • Convert number to its equivalent hexadecimal representation.

    SQL equivalent: to_hex

    Type parameters

    • s

    Parameters

    • num: Col<s, number>

    Returns Col<s, string>

upper

  • upper<s>(str: Col<s, string>): Col<s, string>
  • Convert string to upper case

    SQL equivalent: upper

    Type parameters

    • s

    Parameters

    • str: Col<s, string>

    Returns Col<s, string>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc