{"id":13529070,"url":"https://github.com/datacharmer/test_db","last_synced_at":"2025-05-14T09:06:31.143Z","repository":{"id":37327144,"uuid":"41632796","full_name":"datacharmer/test_db","owner":"datacharmer","description":"A sample MySQL database with an integrated test suite, used to test your applications and database servers","archived":false,"fork":false,"pushed_at":"2024-08-06T09:58:55.000Z","size":76055,"stargazers_count":4223,"open_issues_count":3,"forks_count":2637,"subscribers_count":149,"default_branch":"master","last_synced_at":"2025-05-14T09:05:18.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/datacharmer.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog","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":"2015-08-30T15:11:39.000Z","updated_at":"2025-05-14T04:18:16.000Z","dependencies_parsed_at":"2022-07-14T04:30:33.031Z","dependency_job_id":"ec639303-1914-437b-9002-35ed7389b777","html_url":"https://github.com/datacharmer/test_db","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacharmer%2Ftest_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacharmer%2Ftest_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacharmer%2Ftest_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacharmer%2Ftest_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacharmer","download_url":"https://codeload.github.com/datacharmer/test_db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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-08-01T07:00:32.603Z","updated_at":"2025-05-14T09:06:31.122Z","avatar_url":"https://github.com/datacharmer.png","language":"Shell","funding_links":[],"categories":["Shell","PLpgSQL","Development"],"sub_categories":[],"readme":"# test_db\nA sample database with an integrated test suite, used to test your applications and database servers\n\nThis repository was migrated from [Launchpad](https://launchpad.net/test-db).\n\nSee usage in the [MySQL docs](https://dev.mysql.com/doc/employee/en/index.html)\n\n\n## Where it comes from\n\nThe original data was created by Fusheng Wang and Carlo Zaniolo at \nSiemens Corporate Research. The data is in XML format.\nhttp://timecenter.cs.aau.dk/software.htm\n\nGiuseppe Maxia made the relational schema and Patrick Crews exported\nthe data in relational format.\n\nThe database contains about 300,000 employee records with 2.8 million \nsalary entries. The export data is 167 MB, which is not huge, but\nheavy enough to be non-trivial for testing.\n\nThe data was generated, and as such there are inconsistencies and subtle\nproblems. Rather than removing them, we decided to leave the contents\nuntouched, and use these issues as data cleaning exercises.\n\n## Prerequisites\n\nYou need a MySQL database server (5.0+) and run the commands below through a \nuser that has the following privileges:\n\n    SELECT, INSERT, UPDATE, DELETE, \n    CREATE, DROP, RELOAD, REFERENCES, \n    INDEX, ALTER, SHOW DATABASES, \n    CREATE TEMPORARY TABLES, \n    LOCK TABLES, EXECUTE, CREATE VIEW\n\n## Installation:\n\n1. Download the repository\n2. Change directory to the repository\n\nThen run\n\n    mysql \u003c employees.sql\n\n\nIf you want to install with two large partitioned tables, run\n\n    mysql \u003c employees_partitioned.sql\n\n\n## Testing the installation\n\nAfter installing, you can run one of the following\n\n    mysql -t \u003c test_employees_md5.sql\n    # OR\n    mysql -t \u003c test_employees_sha.sql\n\nFor example:\n\n    mysql  -t \u003c test_employees_md5.sql\n    +----------------------+\n    | INFO                 |\n    +----------------------+\n    | TESTING INSTALLATION |\n    +----------------------+\n    +--------------+------------------+----------------------------------+\n    | table_name   | expected_records | expected_crc                     |\n    +--------------+------------------+----------------------------------+\n    | employees    |           300024 | 4ec56ab5ba37218d187cf6ab09ce1aa1 |\n    | departments  |                9 | d1af5e170d2d1591d776d5638d71fc5f |\n    | dept_manager |               24 | 8720e2f0853ac9096b689c14664f847e |\n    | dept_emp     |           331603 | ccf6fe516f990bdaa49713fc478701b7 |\n    | titles       |           443308 | bfa016c472df68e70a03facafa1bc0a8 |\n    | salaries     |          2844047 | fd220654e95aea1b169624ffe3fca934 |\n    +--------------+------------------+----------------------------------+\n    +--------------+------------------+----------------------------------+\n    | table_name   | found_records    | found_crc                        |\n    +--------------+------------------+----------------------------------+\n    | employees    |           300024 | 4ec56ab5ba37218d187cf6ab09ce1aa1 |\n    | departments  |                9 | d1af5e170d2d1591d776d5638d71fc5f |\n    | dept_manager |               24 | 8720e2f0853ac9096b689c14664f847e |\n    | dept_emp     |           331603 | ccf6fe516f990bdaa49713fc478701b7 |\n    | titles       |           443308 | bfa016c472df68e70a03facafa1bc0a8 |\n    | salaries     |          2844047 | fd220654e95aea1b169624ffe3fca934 |\n    +--------------+------------------+----------------------------------+\n    +--------------+---------------+-----------+\n    | table_name   | records_match | crc_match |\n    +--------------+---------------+-----------+\n    | employees    | OK            | ok        |\n    | departments  | OK            | ok        |\n    | dept_manager | OK            | ok        |\n    | dept_emp     | OK            | ok        |\n    | titles       | OK            | ok        |\n    | salaries     | OK            | ok        |\n    +--------------+---------------+-----------+\n\n\n## DISCLAIMER\n\nTo the best of my knowledge, this data is fabricated and\nit does not correspond to real people. \nAny similarity to existing people is purely coincidental.\n\n\n## LICENSE\nThis work is licensed under the \nCreative Commons Attribution-Share Alike 3.0 Unported License. \nTo view a copy of this license, visit \nhttp://creativecommons.org/licenses/by-sa/3.0/ or send a letter to \nCreative Commons, 171 Second Street, Suite 300, San Francisco, \nCalifornia, 94105, USA.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacharmer%2Ftest_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacharmer%2Ftest_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacharmer%2Ftest_db/lists"}