{"id":16193359,"url":"https://github.com/starnowski/posmulten-ddl","last_synced_at":"2025-07-06T01:33:31.386Z","repository":{"id":44881871,"uuid":"332505992","full_name":"starnowski/posmulten-ddl","owner":"starnowski","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-20T19:44:57.000Z","size":12814,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T15:17:40.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starnowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-24T17:05:43.000Z","updated_at":"2022-01-20T19:44:58.000Z","dependencies_parsed_at":"2022-09-24T22:51:28.678Z","dependency_job_id":null,"html_url":"https://github.com/starnowski/posmulten-ddl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/starnowski/posmulten-ddl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fposmulten-ddl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fposmulten-ddl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fposmulten-ddl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fposmulten-ddl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starnowski","download_url":"https://codeload.github.com/starnowski/posmulten-ddl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starnowski%2Fposmulten-ddl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263836284,"owners_count":23517873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:14:42.402Z","updated_at":"2025-07-06T01:33:31.147Z","avatar_url":"https://github.com/starnowski.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Running the bats tests](https://github.com/starnowski/posmulten-ddl/workflows/Running%20the%20bats%20tests/badge.svg)\n\n# posmulten-ddl\n\nA wrapper script for project [configuration-jar](https://github.com/starnowski/posmulten/tree/master/configuration-parent/configuration-jar) that allows to creates the shared schema strategy for multi-tenant approach.\nFor the passed path to the configuration file, the wrapper creates two SQL scripts. One contains DDL statements that create a shared schema strategy, and the other one drops it.\n__Important__, wrapper required installed java in version 8 or newer.\nPlease check module [configuration-yaml-interpreter](https://github.com/starnowski/posmulten/tree/master/configuration-parent/configuration-yaml-interpreter) to find out how to prepare a configuration file.\nYou can also use option '--printYamlSchemaGuide' to print use guide for Yaml schema.\n\n### How install script\n\n*   Download or clone repository\n*   Add __bin__ directory to PATH\n\n## How to use wrapper\n\n```bash\n    posmulten-ddl.sh {Options} {Path to configuration file}\n```\n\nARGUMENTS:\n\n```bash\n    1 - Path to configuration file\n```\n\nOPTIONS:\n\n```bash\n    -h, --help                  Prints the usage information\n        --createScriptPath      Sets path for a script that contains DDL statements that create a shared schema strategy. By default, a file with the name create_script.sql is being created in the current directory.\n        --dropScripPath         Sets path for a script that contains DDL statements that drop a shared schema strategy. By default, a file with the name drop_script.sql is being created in the current directory.\n        --jarVersion            Sets version of jar file that should be used to generate ddl statements.\n                                To check what version is available please check https://search.maven.org/artifact/com.github.starnowski.posmulten.configuration/configuration-jar site.\n        --printYamlSchemaGuide  Prints Yaml schema guide. This option is available for library since version 0.5.0\n        --verbose               Sets a higher logging level. Useful for debugging purposes.\n```\n\nEXAMPLES:\n\n```bash\n    posmulten-ddl.sh ../examples/all-fields.yaml\n    # Passing parameters with paths where result script should be created\n    posmulten-ddl.sh --createScriptPath \"../examples/cscript.sql\" --dropScripPath \"../examples/dscript.sql\" ../examples/all-fields.yaml\n    # Setting version of jar file which should be used\n    posmulten-ddl.sh --jarVersion \"0.3.0\" ../examples/all-fields-0.3.0-valid.yaml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fposmulten-ddl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarnowski%2Fposmulten-ddl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarnowski%2Fposmulten-ddl/lists"}