[jOOQ/jOOQ#982] Add support for GIS extensions

- Support ST_Centroid
This commit is contained in:
Lukas Eder 2021-11-13 15:53:32 +01:00
parent 38cd2f943a
commit ebc4d8d6e2
5 changed files with 224 additions and 0 deletions

View File

@ -21413,6 +21413,32 @@ public class DSL {

View File

@ -428,6 +428,7 @@ final class Names {
static final Name N_STDDEV_SAMP = unquotedName("stddev_samp");
static final Name N_ST_AREA = unquotedName("st_area");
static final Name N_ST_ASTEXT = unquotedName("st_astext");
static final Name N_ST_CENTROID = unquotedName("st_centroid");
static final Name N_ST_CONTAINS = unquotedName("st_contains");
static final Name N_ST_CROSSES = unquotedName("st_crosses");
static final Name N_ST_DISJOINT = unquotedName("st_disjoint");

View File

@ -324,6 +324,7 @@ import static org.jooq.impl.DSL.square;
// ...
// ...
// ...
// ...
import static org.jooq.impl.DSL.stddevPop;
import static org.jooq.impl.DSL.stddevSamp;
import static org.jooq.impl.DSL.sum;
@ -7768,6 +7769,8 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
@ -8346,6 +8349,11 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
}
else if (parseFunctionNameIf("ST_CENTROID") && requireProEdition()) {
}
else if (parseFunctionNameIf("ST_DISTANCE") && requireProEdition()) {

View File

@ -5388,6 +5388,22 @@ public final class QOM {

View File

@ -0,0 +1,173 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq.impl;