-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
2,925 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
export GPG_TTY=$(tty) | ||
|
||
echo $GPG_SIGNING_KEY | base64 -d > signing.gpg | ||
gpg --batch --import signing.gpg | ||
|
||
GPG_EXECUTABLE=gpg mvn -DskipTests -s ./.github/scripts/settings.xml -P ossrh clean deploy | ||
|
||
rm -rf signing.gpg | ||
gpg --delete-keys | ||
gpg --delete-secret-keys |
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,11 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>central</id> | ||
<username>${env.NEXUS_USERNAME}</username> | ||
<password>${env.NEXUS_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
</settings> |
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,40 @@ | ||
name: Publish-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Cache m2 repo | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build | ||
run: mvn clean install | ||
|
||
- name: Publish to sonatype | ||
run: ./.github/scripts/push-to-nexus.sh | ||
env: | ||
BUILD_ENV: 'github-actions' | ||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | ||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) [2023] [Jiri Novotny <[email protected]>, Ondrej Babec <[email protected]>] | ||
Copyright (c) [2024] [Jiri Novotny <[email protected]>, Ondrej Babec <[email protected]>] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) [2024] [Jiri Novotny <[email protected]>, Ondrej Babec <[email protected]>] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
|
@@ -6,9 +6,40 @@ | |
|
||
<artifactId>database-manipulation-tool-schema</artifactId> | ||
<version>${project.parent.version}</version> | ||
<name>database-manipulation-tool-schema</name> | ||
<description>Library with database manipulation tool objects representing database entries (rows)</description> | ||
<name>${project.groupId}:${project.artifactId}</name> | ||
<url>https://github.com/skodjob/database-performance-hub</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>The Apache License, Version 2.0</name> | ||
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<connection>scm:git:git:/github.com/skodjob/database-performance-hub.git</connection> | ||
<developerConnection>scm:git:ssh://github.com/skodjob/database-performance-hub.git</developerConnection> | ||
<url>https://github.com/skodjob/database-performance-hub</url> | ||
</scm> | ||
|
||
<issueManagement> | ||
<system>GitHub</system> | ||
<url>https://github.com/skodjob/database-performance-hub/issues</url> | ||
</issueManagement> | ||
|
||
<developers> | ||
<developer> | ||
<id>obabec</id> | ||
<name>Ondrej Babec</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>novotnyJiri </id> | ||
<name>Jiri Novotny</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
|
||
<parent> | ||
<artifactId>database-performance-hub</artifactId> | ||
|
66 changes: 66 additions & 0 deletions
66
database-manipulation-tool-schema/src/main/assembly/dist.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,66 @@ | ||
<!-- | ||
~ | ||
~ MIT License | ||
~ | ||
~ Copyright (c) [2024] [Ondrej Babec <[email protected]>, Jiri Novotny <[email protected]>] | ||
~ | ||
~ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
~ of this software and associated documentation files (the "Software"), to deal | ||
~ in the Software without restriction, including without limitation the rights | ||
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
~ copies of the Software, and to permit persons to whom the Software is | ||
~ furnished to do so, subject to the following conditions: | ||
~ | ||
~ The above copyright notice and this permission notice shall be included in all | ||
~ copies or substantial portions of the Software. | ||
~ | ||
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | ||
~ KIND, EXPRESS OR | ||
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
~ MERCHANTABILITY, | ||
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO | ||
~ EVENT SHALL THE | ||
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
~ DAMAGES OR OTHER | ||
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE | ||
~ ARISING FROM, | ||
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
~ OTHER DEALINGS IN THE | ||
~ SOFTWARE. | ||
--> | ||
|
||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | ||
<id>zip</id> | ||
<includeBaseDirectory>true</includeBaseDirectory> | ||
|
||
<formats> | ||
<format>tar.gz</format> | ||
<format>zip</format> | ||
<format>dir</format> | ||
</formats> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${project.basedir}</directory> | ||
<includes> | ||
<include>README*</include> | ||
</includes> | ||
<fileMode>0644</fileMode> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.basedir}</directory> | ||
<includes> | ||
<include>LICENSE</include> | ||
</includes> | ||
<fileMode>0644</fileMode> | ||
</fileSet> | ||
</fileSets> | ||
<dependencySets> | ||
<dependencySet> | ||
<scope>runtime</scope> | ||
<outputDirectory>libs</outputDirectory> | ||
<fileMode>0644</fileMode> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> |
33 changes: 0 additions & 33 deletions
33
database-manipulation-tool-schema/src/main/java/io/skodjob/dmt/schema/App.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,44 +1,118 @@ | ||
/* | ||
* | ||
* MIT License | ||
* | ||
* Copyright (c) [2024] [Ondrej Babec <[email protected]>, Jiri Novotny <[email protected]>] | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | ||
* KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO | ||
* EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
* DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE | ||
* ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
* OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
package io.skodjob.dmt.schema; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* The type Database column entry. | ||
*/ | ||
public final class DatabaseColumnEntry { | ||
private String value; | ||
private String columnName; | ||
private String dataType; | ||
|
||
/** | ||
* Instantiates a new Database column entry. | ||
* | ||
* @param value the value | ||
* @param columnName the column name | ||
* @param dataType the data type | ||
*/ | ||
public DatabaseColumnEntry(String value, String columnName, String dataType) { | ||
this.value = value; | ||
this.columnName = columnName; | ||
this.dataType = dataType; | ||
} | ||
|
||
/** | ||
* Instantiates a new Database column entry. | ||
*/ | ||
public DatabaseColumnEntry() { | ||
this.value = "UNDEFINED"; | ||
this.columnName = "UNDEFINED"; | ||
this.dataType = "UNDEFINED"; | ||
} | ||
|
||
/** | ||
* Gets value. | ||
* | ||
* @return the value | ||
*/ | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
/** | ||
* Sets value. | ||
* | ||
* @param value the value | ||
*/ | ||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Gets column name. | ||
* | ||
* @return the column name | ||
*/ | ||
public String getColumnName() { | ||
return columnName; | ||
} | ||
|
||
/** | ||
* Sets column name. | ||
* | ||
* @param columnName the column name | ||
*/ | ||
public void setColumnName(String columnName) { | ||
this.columnName = columnName; | ||
} | ||
|
||
/** | ||
* Gets data type. | ||
* | ||
* @return the data type | ||
*/ | ||
public String getDataType() { | ||
return dataType; | ||
} | ||
|
||
/** | ||
* Sets data type. | ||
* | ||
* @param dataType the data type | ||
*/ | ||
public void setDataType(String dataType) { | ||
this.dataType = dataType; | ||
} | ||
|
@@ -69,14 +143,29 @@ public int hashCode() { | |
return Objects.hash(value, columnName, dataType); | ||
} | ||
|
||
/** | ||
* Value string. | ||
* | ||
* @return the string | ||
*/ | ||
public String value() { | ||
return value; | ||
} | ||
|
||
/** | ||
* Column name string. | ||
* | ||
* @return the string | ||
*/ | ||
public String columnName() { | ||
return columnName; | ||
} | ||
|
||
/** | ||
* Data type string. | ||
* | ||
* @return the string | ||
*/ | ||
public String dataType() { | ||
return dataType; | ||
} | ||
|
Oops, something went wrong.