{"id":13793019,"url":"https://github.com/dbtk/schema-loader","last_synced_at":"2025-05-12T17:31:40.781Z","repository":{"id":32949235,"uuid":"36545601","full_name":"dbtk/schema-loader","owner":"dbtk","description":"Database schema loader","archived":false,"fork":false,"pushed_at":"2020-02-18T14:28:04.000Z","size":65,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-11T10:32:33.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbtk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-30T05:59:19.000Z","updated_at":"2020-03-26T10:01:57.000Z","dependencies_parsed_at":"2022-07-11T08:47:28.921Z","dependency_job_id":null,"html_url":"https://github.com/dbtk/schema-loader","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtk%2Fschema-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtk%2Fschema-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtk%2Fschema-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtk%2Fschema-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbtk","download_url":"https://codeload.github.com/dbtk/schema-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225144934,"owners_count":17427894,"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-03T22:01:20.446Z","updated_at":"2024-11-18T07:30:17.436Z","avatar_url":"https://github.com/dbtk.png","language":"PHP","funding_links":[],"categories":["类库"],"sub_categories":["数据库"],"readme":"schema-loader\n=============\n\nLoad database schema from an XML file.\n\n## Usage\n\nYou can load schema to database by:\n\n### Database url\n\nA full URL containing username, password, hostname and dbname:\n\n```\n./bin/dbtk-schema-loader schema:load example/schema.xml mysql://username:password@localhost/dbname\n```\n\n### Just a dbname\n\nIn this case [linkorb/database-manager](https://github.com/linkorb/database-manager) is used for loading database connection details (server, username, password, etc) from .conf files (read project readme for more details).\n\nIn a nutshell - you must have a `dbname.conf` file at `/share/config/database/` as described at [database-manager's documentation](https://github.com/linkorb/database-manager#database-configuration-files).\n\n```bash\n./bin/dbtk-schema-loader schema:load example/schema.xml dbname\n```\n\n### Examples\n\nSee `example/schema.xml` or `/tests/fixtures/schema.xml`.\n\n### Notices\n\n- Don't forget to use `notnull=\"false\"` for optional fields.\n- Don't use `primaryKey=\"id\"` in table definition - in version `~2.0` indexes have new format.\n\n## License\nPlease refer to the included LICENSE file\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [engineering.linkorb.com](http://engineering.linkorb.com).\n\nBtw, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbtk%2Fschema-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbtk%2Fschema-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbtk%2Fschema-loader/lists"}