{"id":18015580,"url":"https://github.com/nomemory/neat-sample-databases-generators","last_synced_at":"2025-03-26T18:31:18.390Z","repository":{"id":82269830,"uuid":"338312773","full_name":"nomemory/neat-sample-databases-generators","owner":"nomemory","description":"Neat java scripts (!not javascript) to generate arbitrary data for various sample databases (hr schema, classicmodels, etc.)","archived":false,"fork":false,"pushed_at":"2021-02-19T16:36:44.000Z","size":308,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T06:32:36.028Z","etag":null,"topics":["classicmodels","java","jbang","mariadb","mockneat","mysql","postgresql","sample-databases","sample-schemas","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomemory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-12T12:26:52.000Z","updated_at":"2025-02-15T05:37:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"1620c46d-c35e-48ae-9aac-dfe6e5de982b","html_url":"https://github.com/nomemory/neat-sample-databases-generators","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fneat-sample-databases-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fneat-sample-databases-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fneat-sample-databases-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fneat-sample-databases-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomemory","download_url":"https://codeload.github.com/nomemory/neat-sample-databases-generators/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245712640,"owners_count":20660275,"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":["classicmodels","java","jbang","mariadb","mockneat","mysql","postgresql","sample-databases","sample-schemas","sql"],"created_at":"2024-10-30T04:14:27.795Z","updated_at":"2025-03-26T18:31:18.382Z","avatar_url":"https://github.com/nomemory.png","language":"Java","readme":"A list of scripts that are genering DDL and DML scripts to fill-up sample schemas with data.\n\nScripts are written in Java, and can be run using [jbang](https://github.com/jbangdev/jbang).\n\nTo install jbang - [check the official documentation](https://github.com/jbangdev/jbang) - or simply:\n\n```sh\ncurl -s \"https://get.sdkman.io\" | bash \nsource ~/.bash_profile\nsdk install java \nsdk install jbang\n```\n\nData is generated using [mockneat](https://www.mockneat.com).\n\nContributions are welcomed!\n\n# List of scripts\n\n| Script | Schema | Targets |\n| ------ | ------ | ------- |\n| [scripts/classicmodels_mysql.java](https://github.com/nomemory/neat-sample-databases-generators/blob/main/scripts/classicmodels_mysql.java) | [classicmodels](#classicmodels-sql) | mysql, mariadb |\n| [scripts/classicmodels_postgresql.java](https://github.com/nomemory/neat-sample-databases-generators/blob/main/scripts/classicmodels_postgresql.java) | [classicmodels](#classicmodels-sql) | postgresql |\n| [scripts/hr_schema_mysql.java](https://github.com/nomemory/neat-sample-databases-generators/blob/main/scripts/hr_schema_mysql.java) | [HR](#hr-schema-sql) | mysql, mariadb |\n| [scripts/hr_schema_postgresql.java](https://github.com/nomemory/neat-sample-databases-generators/blob/main/scripts/hr_schema_postgresql.java) | [HR](#hr-schema-sql) | postgresql |\n\n# Running the scripts\n\nAfter cloning the project:\n\n```sh\njbang scripts/hr_schema_mysql.java \u003e inserts.sql\n```\n\nMost scripts support various options (e.g.: generating more data, or target various databases). The best way to see the options a script is offering:\n\n```sh\njbang scripts/hr_schema_mysql.java --help\n```\n\nEach subsequent run will generate arbitrary data, different than the previous run.\n\n# Supported Schemas\n\nER diagrams were generated using [DBeaver](https://dbeaver.io/). \n\n## HR Schema (SQL)\n\nIf you ever had the chance to work with [Oracle DB](https://www.oracle.com/ro/database/technologies/) this is probably one of the most known sample schemas to play with. \n\nIt models an HR application containing information about the Company's Locations, Departements, Employees and their Managers.\n\n![HR Schema](https://github.com/nomemory/neat-sample-databases-generators/blob/main/assets/hr-schema.png)\n\n## classicmodels (SQL)\n\nThis is a classic schema describing a online-shop. \n\nIt's one of the official sample schemas for MySQL.\n\n![classicmodels](https://github.com/nomemory/neat-sample-databases-generators/blob/main/assets/classicmodels_schema.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomemory%2Fneat-sample-databases-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomemory%2Fneat-sample-databases-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomemory%2Fneat-sample-databases-generators/lists"}