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

- Support ST_Distance, ST_GeometryType
This commit is contained in:
Lukas Eder 2021-11-13 14:19:42 +01:00
parent ab747e1a52
commit d5f5c9d8a2
6 changed files with 487 additions and 0 deletions

View File

@ -21277,6 +21277,87 @@ public class DSL {

View File

@ -430,8 +430,10 @@ final class Names {
static final Name N_ST_ASTEXT = unquotedName("st_astext");
static final Name N_ST_CONTAINS = unquotedName("st_contains");
static final Name N_ST_CROSSES = unquotedName("st_crosses");
static final Name N_ST_DISTANCE = unquotedName("st_distance");
static final Name N_ST_ENDPOINT = unquotedName("st_endpoint");
static final Name N_ST_EQUALS = unquotedName("st_equals");
static final Name N_ST_GEOMETRYTYPE = unquotedName("st_geometrytype");
static final Name N_ST_GEOMFROMTEXT = unquotedName("st_geomfromtext");
static final Name N_ST_INTERSECTION = unquotedName("st_intersection");
static final Name N_ST_INTERSECTS = unquotedName("st_intersects");

View File

@ -321,6 +321,8 @@ 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;
@ -7752,6 +7754,10 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
@ -8332,11 +8338,21 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
}
else if (parseFunctionNameIf("ST_DISTANCE") && requireProEdition()) {
}
else if (parseFunctionNameIf("ST_ENDPOINT") && requireProEdition()) {
}
else if (parseFunctionNameIf("ST_GEOMETRYTYPE") && requireProEdition()) {
}
else if (parseFunctionNameIf("ST_GEOMFROMTEXT") && requireProEdition()) {

View File

@ -3672,6 +3672,30 @@ public final class QOM {

View File

@ -0,0 +1,191 @@
/*
* 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;

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;