Skip to content

Add basic support for UDTs, Enums and Domains #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2021
Merged

Conversation

rocket-3
Copy link
Collaborator

@rocket-3 rocket-3 commented Jun 7, 2021

Added template code for UDTs, Enums and Domains Meta/DB objects support
DBEnum/DBUserDefinedType/DBDomain are instances of MetaSql, that's why no modification in Backup adapters needed
Added template code for Postgres DBMS implementation of fetching these obejcts data

DBEnum/DBUserDefinedType/DBDomain are instances of MetaSql, that's why no modification in Backup adapters needed
@rocket-3 rocket-3 added this to the Production-ready milestone Jun 7, 2021
@rocket-3 rocket-3 linked an issue Jun 7, 2021 that may be closed by this pull request
rocket-3 added 2 commits June 8, 2021 22:05
…etDomains

Add IT case just testing fetch and existence of such objects
Disabled DbGitIntegrationTestNotebook for automatic test execution not to accidentally burn test repos
# Conflicts:
#	src/test/java/ru/fusionsoft/dbgit/integration/DbGitIntegrationTestBasic.java
Fix of some new implementations errors
Improve test case with custom types
@rocket-3
Copy link
Collaborator Author

Now we have some implementation of fetching and restore of custom types.
Let's run fetch scenario test case DbGitIntegrationTestBasic#dbToFilesDumpWorks (which now uses dvdrental database and configures .dbignore to take custom types)

@rocket-3 rocket-3 linked an issue Jun 11, 2021 that may be closed by this pull request
@rocket-3
Copy link
Collaborator Author

@rultor merge, tests=*IntegrationTest*#*dbToFilesDumpWorks*

@rultor
Copy link

rultor commented Jun 11, 2021

@rultor merge, tests=*IntegrationTest*#*dbToFilesDumpWorks*

@rocket-3 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link

rultor commented Jun 11, 2021

@rultor merge, tests=*IntegrationTest*#*dbToFilesDumpWorks*

@rocket-3, tests OK. You can see the full log here (spent 2min)

|   /home/r/repo/target/itoutput/02 # writing file .dbgit/.dbignore with content:
|   > *
|   > !public/*.ts
|   > !public/*.sch
|   > !public/*.seq
|   > !public/*.tbl
|   > !public/*.pkg
|   > !public/*.trg
|   > !public/*.prc
|   > !public/*.fnc
|   > !public/*.vw
|   > !public/*.blob
|   > !public/*.udt
|   > !public/*.enum
|   > !public/*.domain
|   > !public/*.csv
|   /home/r/repo/target/itoutput/02 # /home/r/repo/target/dbgit/bin/dbgit add "*"
|   > Done!
|   [TEST OK] "git folder exists"
|   [TEST OK] "rental table data exists"
|   [TEST OK] "city table data (small) is not empty"
|   [TEST OK] "rental table data (10K+ rows) exists and is empty"
|   [TEST OK] "mpaa_rating.enum exists"
|   [TEST OK] "year.domain exists"
|   [TEST OK] "film_summary.udt exists"
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.06 s - in 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
container 7a2cffa31de40f3083e607a71bbc538a6041b4831e8efc5a76552ae9c85173cf is dead
Fri Jun 11 03:12:25 CEST 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for custom types, such as Enums in Postgresql
2 participants