Class PostgresDSL

    • Constructor Detail

      • PostgresDSL

        protected PostgresDSL()
        No instances
    • Method Detail

      • arrayOverlap

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Condition arrayOverlap​(T[] left,
                                                 T[] right)
        The PostgreSQL array1 && array2 overlap operator.

        Example:

         true = array[1, 2, 3] && array[3, 4, 5]
         
      • arrayOverlap

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Condition arrayOverlap​(T[] left,
                                                 Field<T[]> right)
        The PostgreSQL array1 && array2 overlap operator.

        Example:

         true = array[1, 2, 3] && array[3, 4, 5]
         
      • arrayOverlap

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Condition arrayOverlap​(Field<T[]> left,
                                                 T[] right)
        The PostgreSQL array1 && array2 overlap operator.

        Example:

         true = array[1, 2, 3] && array[3, 4, 5]
         
      • arrayAppend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayAppend​(T[] array,
                                                 T value)
        The PostgreSQL array_append(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_append(ARRAY[1, 2], 3)
         
      • arrayAppend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayAppend​(T[] array,
                                                 Field<T> value)
        The PostgreSQL array_append(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_append(ARRAY[1, 2], 3)
         
      • arrayAppend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayAppend​(Field<T[]> array,
                                                 T value)
        The PostgreSQL array_append(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_append(ARRAY[1, 2], 3)
         
      • arrayAppend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayAppend​(Field<T[]> array,
                                                 Field<T> value)
        The PostgreSQL array_append(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_append(ARRAY[1, 2], 3)
         
      • arrayPrepend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayPrepend​(T value,
                                                  T[] array)
        The PostgreSQL array_prepend(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_prepend(1, ARRAY[2, 3])
         
      • arrayPrepend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayPrepend​(Field<T> value,
                                                  T[] array)
        The PostgreSQL array_prepend(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_prepend(1, ARRAY[2, 3])
         
      • arrayPrepend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayPrepend​(T value,
                                                  Field<T[]> array)
        The PostgreSQL array_prepend(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_prepend(1, ARRAY[2, 3])
         
      • arrayPrepend

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayPrepend​(Field<T> value,
                                                  Field<T[]> array)
        The PostgreSQL array_prepend(anyarray, anyelement) function.

        Example:

         {1, 2, 3} = array_prepend(1, ARRAY[2, 3])
         
      • arrayCat

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayCat​(T[] array1,
                                              T[] array2)
        The PostgreSQL array_cat(anyarray, anyelement) function.

        Example:

         {1, 2, 3, 4, 5} = array_cat(ARRAY[1, 2], ARRAY[3, 4, 5])
         
      • arrayCat

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayCat​(T[] array1,
                                              Field<T[]> array2)
        The PostgreSQL array_cat(anyarray, anyelement) function.

        Example:

         {1, 2, 3, 4, 5} = array_cat(ARRAY[1, 2], ARRAY[3, 4, 5])
         
      • arrayCat

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayCat​(Field<T[]> array1,
                                              T[] array2)
        The PostgreSQL array_cat(anyarray, anyelement) function.

        Example:

         {1, 2, 3, 4, 5} = array_cat(ARRAY[1, 2], ARRAY[3, 4, 5])
         
      • arrayCat

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayCat​(Field<T[]> array1,
                                              Field<T[]> array2)
        The PostgreSQL array_cat(anyarray, anyelement) function.

        Example:

         {1, 2, 3, 4, 5} = array_cat(ARRAY[1, 2], ARRAY[3, 4, 5])
         
      • arrayRemove

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayRemove​(T[] array,
                                                 T element)
        The PostgreSQL array_remove(anyarray, anyelement) function.

        Example:

         {1,3} = array_remove(ARRAY[1,2,3,2], 2)
         
      • arrayRemove

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayRemove​(Field<T[]> array,
                                                 T element)
        The PostgreSQL array_remove(anyarray, anyelement) function.

        Example:

         {1,3} = array_remove(ARRAY[1,2,3,2], 2)
         
      • arrayRemove

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayRemove​(T[] array,
                                                 Field<T> element)
        The PostgreSQL array_remove(anyarray, anyelement) function.

        Example:

         {1,3} = array_remove(ARRAY[1,2,3,2], 2)
         
      • arrayRemove

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayRemove​(Field<T[]> array,
                                                 Field<T> element)
        The PostgreSQL array_remove(anyarray, anyelement) function.

        Example:

         {1,3} = array_remove(ARRAY[1,2,3,2], 2)
         
      • arrayReplace

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayReplace​(T[] array,
                                                  T search,
                                                  T replace)
        The PostgreSQL array_replace(anyarray, anyelement, anyelement) function.

        Example:

         {1,2,3,4} = array_replace(ARRAY[1,2,5,4], 5, 3)
         
      • arrayReplace

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayReplace​(T[] array,
                                                  Field<T> search,
                                                  Field<T> replace)
        The PostgreSQL array_replace(anyarray, anyelement, anyelement) function.

        Example:

         {1,2,3,4} = array_replace(ARRAY[1,2,5,4], 5, 3)
         
      • arrayReplace

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayReplace​(Field<T[]> array,
                                                  T search,
                                                  T replace)
        The PostgreSQL array_replace(anyarray, anyelement, anyelement) function.

        Example:

         {1,2,3,4} = array_replace(ARRAY[1,2,5,4], 5, 3)
         
      • arrayReplace

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayReplace​(Field<T[]> array,
                                                  Field<T> search,
                                                  Field<T> replace)
        The PostgreSQL array_replace(anyarray, anyelement, anyelement) function.

        Example:

         {1,2,3,4} = array_replace(ARRAY[1,2,5,4], 5, 3)
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(T value,
                                               java.lang.Integer[] dimensions)
        The PostgreSQL array_fill(anyelement, int[]) function.

        Example:

         {7,7,7} = array_fill(7, ARRAY[3])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(Field<T> value,
                                               java.lang.Integer[] dimensions)
        The PostgreSQL array_fill(anyelement, int[]) function.

        Example:

         {7,7,7} = array_fill(7, ARRAY[3])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(T value,
                                               Field<java.lang.Integer[]> dimensions)
        The PostgreSQL array_fill(anyelement, int[]) function.

        Example:

         {7,7,7} = array_fill(7, ARRAY[3])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(Field<T> value,
                                               Field<java.lang.Integer[]> dimensions)
        The PostgreSQL array_fill(anyelement, int[]) function.

        Example:

         {7,7,7} = array_fill(7, ARRAY[3])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(T value,
                                               java.lang.Integer[] dimensions,
                                               java.lang.Integer[] bounds)
        The PostgreSQL array_fill(anyelement, int[], int[]) function.

        Example:

         [2:4]={7,7,7} = array_fill(7, ARRAY[3], ARRAY[2])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(Field<T> value,
                                               java.lang.Integer[] dimensions,
                                               java.lang.Integer[] bounds)
        The PostgreSQL array_fill(anyelement, int[], int[]) function.

        Example:

         [2:4]={7,7,7} = array_fill(7, ARRAY[3], ARRAY[2])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(T value,
                                               Field<java.lang.Integer[]> dimensions,
                                               Field<java.lang.Integer[]> bounds)
        The PostgreSQL array_fill(anyelement, int[], int[]) function.

        Example:

         [2:4]={7,7,7} = array_fill(7, ARRAY[3], ARRAY[2])
         
      • arrayFill

        @Support({AURORA_POSTGRES,POSTGRES})
        public static <T> Field<T[]> arrayFill​(Field<T> value,
                                               Field<java.lang.Integer[]> dimensions,
                                               Field<java.lang.Integer[]> bounds)
        The PostgreSQL array_fill(anyelement, int[], int[]) function.

        Example:

         [2:4]={7,7,7} = array_fill(7, ARRAY[3], ARRAY[2])
         
      • arrayLength

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.Integer> arrayLength​(java.lang.Object[] array)
        The PostgreSQL array_length(anyarray, int) function.

        jOOQ currently doesn't support multi-dimensional arrays, so the dimension will always be 1.

        Example:

         3 = array_length(array[1,2,3], 1)
         
      • arrayLength

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.Integer> arrayLength​(Field<? extends java.lang.Object[]> array)
        The PostgreSQL array_length(anyarray, int) function.

        jOOQ currently doesn't support multi-dimensional arrays, so the dimension will always be 1.

        Example:

         3 = array_length(array[1,2,3], 1)
         
      • arrayToString

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String> arrayToString​(java.lang.Object[] array,
                                                            java.lang.String delimiter)
        The PostgreSQL array_to_string(anyarray, delimiter) function.

        Example:

         '1~^~2~^~3' = array_to_string(ARRAY[1, 2, 3], '~^~')
         
      • arrayToString

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String> arrayToString​(java.lang.Object[] array,
                                                            Field<java.lang.String> delimiter)
        The PostgreSQL array_to_string(anyarray, delimiter) function.

        Example:

         '1~^~2~^~3' = array_to_string(ARRAY[1, 2, 3], '~^~')
         
      • arrayToString

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String> arrayToString​(Field<? extends java.lang.Object[]> array,
                                                            java.lang.String delimiter)
        The PostgreSQL array_to_string(anyarray, delimiter) function.

        Example:

         '1~^~2~^~3' = array_to_string(ARRAY[1, 2, 3], '~^~')
         
      • arrayToString

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String> arrayToString​(Field<? extends java.lang.Object[]> array,
                                                            Field<java.lang.String> delimiter)
        The PostgreSQL array_to_string(anyarray, delimiter) function.

        Example:

         '1~^~2~^~3' = array_to_string(ARRAY[1, 2, 3], '~^~')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(java.lang.String string,
                                                              java.lang.String delimiter)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(java.lang.String string,
                                                              Field<java.lang.String> delimiter)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(Field<java.lang.String> string,
                                                              java.lang.String delimiter)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(Field<java.lang.String> string,
                                                              Field<java.lang.String> delimiter)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(java.lang.String string,
                                                              java.lang.String delimiter,
                                                              java.lang.String nullString)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(java.lang.String string,
                                                              Field<java.lang.String> delimiter,
                                                              Field<java.lang.String> nullString)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(Field<java.lang.String> string,
                                                              java.lang.String delimiter,
                                                              java.lang.String nullString)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
         
      • stringToArray

        @Support({AURORA_POSTGRES,POSTGRES})
        public static Field<java.lang.String[]> stringToArray​(Field<java.lang.String> string,
                                                              Field<java.lang.String> delimiter,
                                                              Field<java.lang.String> nullString)
        The PostgreSQL string_to_array(anyarray, delimiter) function.

        Example:

         {xx,NULL,zz} = string_to_array('xx~^~yy~^~zz', '~^~', 'yy')