{"id":26164709,"url":"https://github.com/optum/legion-data","last_synced_at":"2025-04-14T15:22:10.636Z","repository":{"id":56880973,"uuid":"372972909","full_name":"Optum/legion-data","owner":"Optum","description":"The data gem for the LegionIO framework for connecting to persistent storage","archived":false,"fork":false,"pushed_at":"2021-06-09T19:10:54.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T15:22:02.538Z","etag":null,"topics":["legionio","mysql","ruby","sequel"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-06-01T22:09:03.000Z","updated_at":"2021-06-09T18:45:02.000Z","dependencies_parsed_at":"2022-08-20T13:00:43.704Z","dependency_job_id":null,"html_url":"https://github.com/Optum/legion-data","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/Optum%2Flegion-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Flegion-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/legion-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904630,"owners_count":21180836,"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":["legionio","mysql","ruby","sequel"],"created_at":"2025-03-11T15:39:49.312Z","updated_at":"2025-04-14T15:22:10.609Z","avatar_url":"https://github.com/Optum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Legion::Data\n=====\n\nLegion::Data is a gem for the LegionIO framework to use persistent storage. Currently only MySQL is supported\n\nSupported Ruby versions and implementations\n------------------------------------------------\n\nLegion::Json should work identically on:\n\n* Ruby 2.5+\n\n\nInstallation and Usage\n------------------------\n\nYou can verify your installation using this piece of code:\n\n```bash\ngem install legion-data\n```\n\n```ruby\nrequire 'legion/data'\n\nLegion::Data.setup\nLegion::Data.connected? # =\u003e true\nLegion::Data::Model::Extension.all # Sequel::Dataset\n```\n\nSettings\n----------\n\n```json\n{\n  \"connected\": false,\n  \"cache\": {\n    \"connected\": false,\n    \"auto_enable\": null,\n    \"ttl\": 60\n  },\n  \"connection\": {\n    \"log\": false,\n    \"log_connection_info\": false,\n    \"log_warn_duration\": 1,\n    \"log_warn_duration\": \"debug\",\n    \"max_connections\": 10,\n    \"preconnect\": false\n  },\n  \"creds\": {\n    \"username\": \"legion\",\n    \"password\": \"legion\",\n    \"database\": \"legionio\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 3306\n  },\n  \"migrations\": {\n    \"continue_on_fail\": false,\n    \"auto_migrate\": true,\n    \"ran\": false,\n    \"version\": null\n  },\n  \"models\": {\n    \"continue_on_load_fail\": false,\n    \"autoload\": true\n  },\n  \"connect_on_start\": true\n}\n```\n\nAuthors\n----------\n\n* [Matthew Iverson](https://github.com/Esity) - current maintainer","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Flegion-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Flegion-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Flegion-data/lists"}