generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Postgres SQL model into relational space + More relational repos (…
- Loading branch information
Showing
33 changed files
with
573 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
...ne-xt-relationalStore-pure/legend-engine-xt-relationalStore-postgresSqlModel-pure/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2022 Goldman Sachs | ||
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. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-xt-relationalStore-pure</artifactId> | ||
<version>4.60.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>legend-engine-xt-relationalStore-postgresSqlModel-pure</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Legend Engine - XT - Relational Store - Postgres SQL Model - PAR/JAVA</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-maven-generation-par</artifactId> | ||
<configuration> | ||
<sourceDirectory>src/main/resources</sourceDirectory> | ||
<purePlatformVersion>${legend.pure.version}</purePlatformVersion> | ||
<repositories> | ||
<repository>core_external_store_relational_postgres_sql_model</repository> | ||
</repositories> | ||
<extraRepositories> | ||
<extraRepository>${project.basedir}/src/main/resources/core_external_store_relational_postgres_sql_model.definition.json</extraRepository> | ||
</extraRepositories> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>build-pure-jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-maven-generation-java</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>build-pure-compiled-jar</goal> | ||
</goals> | ||
<configuration> | ||
<generateSources>true</generateSources> | ||
<preventJavaCompilation>true</preventJavaCompilation> | ||
<generationType>modular</generationType> | ||
<useSingleDir>true</useSingleDir> | ||
<repositories> | ||
<repository>core_external_store_relational_postgres_sql_model</repository> | ||
</repositories> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<!-- PURE --> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m4</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m3-core</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-runtime-java-engine-compiled</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-pure-platform-java</artifactId> | ||
</dependency> | ||
<!-- PURE --> | ||
|
||
<dependency> | ||
<groupId>org.eclipse.collections</groupId> | ||
<artifactId>eclipse-collections-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...vices/org.finos.legend.pure.m3.serialization.filesystem.repository.CodeRepositoryProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.finos.legend.engine.code.core.CoreExternalStoreRelationalPostgresSqlModelCodeRepositoryProvider |
7 changes: 7 additions & 0 deletions
7
...pure/src/main/resources/core_external_store_relational_postgres_sql_model.definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "core_external_store_relational_postgres_sql_model", | ||
"pattern": "(meta::external::query::sql)(::.*)?", | ||
"dependencies": [ | ||
"platform" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
160 changes: 160 additions & 0 deletions
160
...-relationalStore-pure/legend-engine-xt-relationalStore-sqlDialectTranslation-pure/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2024 Goldman Sachs | ||
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. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-xt-relationalStore-pure</artifactId> | ||
<version>4.60.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>legend-engine-xt-relationalStore-sqlDialectTranslation-pure</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Legend Engine - XT - Relational Store - SQL Dialect Translation - PAR/JAVA</name> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-maven-generation-par</artifactId> | ||
<configuration> | ||
<sourceDirectory>src/main/resources</sourceDirectory> | ||
<purePlatformVersion>${legend.pure.version}</purePlatformVersion> | ||
<repositories> | ||
<repository>core_external_store_relational_sql_dialect_translation</repository> | ||
</repositories> | ||
<extraRepositories> | ||
<extraRepository>${project.basedir}/src/main/resources/core_external_store_relational_sql_dialect_translation.definition.json</extraRepository> | ||
</extraRepositories> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>build-pure-jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m2-dsl-diagram-grammar</artifactId> | ||
<version>${legend.pure.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-pure-code-compiled-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-xt-relationalStore-postgresSqlModel-pure</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-maven-generation-java</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>build-pure-compiled-jar</goal> | ||
</goals> | ||
<configuration> | ||
<generateSources>true</generateSources> | ||
<preventJavaCompilation>true</preventJavaCompilation> | ||
<generationType>modular</generationType> | ||
<useSingleDir>true</useSingleDir> | ||
<repositories> | ||
<repository>core_external_store_relational_sql_dialect_translation</repository> | ||
</repositories> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m2-dsl-diagram-grammar</artifactId> | ||
<version>${legend.pure.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-pure-code-compiled-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-xt-relationalStore-postgresSqlModel-pure</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<!-- PURE --> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m4</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-m3-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.pure</groupId> | ||
<artifactId>legend-pure-runtime-java-engine-compiled</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-pure-platform-java</artifactId> | ||
</dependency> | ||
<!-- PURE --> | ||
|
||
<!-- ENGINE --> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-pure-code-compiled-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.finos.legend.engine</groupId> | ||
<artifactId>legend-engine-xt-relationalStore-postgresSqlModel-pure</artifactId> | ||
</dependency> | ||
<!-- ENGINE --> | ||
|
||
<dependency> | ||
<groupId>org.eclipse.collections</groupId> | ||
<artifactId>eclipse-collections</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.collections</groupId> | ||
<artifactId>eclipse-collections-api</artifactId> | ||
</dependency> | ||
|
||
<!-- TEST --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
<!-- TEST --> | ||
</dependencies> | ||
|
||
</project> |
28 changes: 28 additions & 0 deletions
28
...ure/code/core/CoreExternalStoreRelationalSqlDialectTranslationCodeRepositoryProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2024 Goldman Sachs | ||
// | ||
// 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. | ||
|
||
package org.finos.legend.pure.code.core; | ||
|
||
import org.finos.legend.pure.m3.serialization.filesystem.repository.CodeRepository; | ||
import org.finos.legend.pure.m3.serialization.filesystem.repository.CodeRepositoryProvider; | ||
import org.finos.legend.pure.m3.serialization.filesystem.repository.GenericCodeRepository; | ||
|
||
public class CoreExternalStoreRelationalSqlDialectTranslationCodeRepositoryProvider implements CodeRepositoryProvider | ||
{ | ||
@Override | ||
public CodeRepository repository() | ||
{ | ||
return GenericCodeRepository.build("core_external_store_relational_sql_dialect_translation.definition.json"); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...vices/org.finos.legend.pure.m3.serialization.filesystem.repository.CodeRepositoryProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.finos.legend.pure.code.core.CoreExternalStoreRelationalSqlDialectTranslationCodeRepositoryProvider |
9 changes: 9 additions & 0 deletions
9
...src/main/resources/core_external_store_relational_sql_dialect_translation.definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "core_external_store_relational_sql_dialect_translation", | ||
"pattern": "(meta::external::store::relational::sqlDialectTranslation)(::.*)?", | ||
"dependencies": [ | ||
"platform", | ||
"core", | ||
"core_external_store_relational_postgres_sql_model" | ||
] | ||
} |
Oops, something went wrong.