{"id":23430627,"url":"https://github.com/dnswus/activerecord-shipworks","last_synced_at":"2026-05-02T03:06:31.535Z","repository":{"id":56842201,"uuid":"125439915","full_name":"dnswus/activerecord-shipworks","owner":"dnswus","description":"Access Shipworks data via ActiveRecord","archived":false,"fork":false,"pushed_at":"2018-07-26T20:37:10.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T18:35:26.195Z","etag":null,"topics":["activerecord","ruby","ruby-on-rails","shipworks"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/dnswus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-15T23:58:11.000Z","updated_at":"2018-07-26T20:37:11.000Z","dependencies_parsed_at":"2022-09-01T06:32:20.437Z","dependency_job_id":null,"html_url":"https://github.com/dnswus/activerecord-shipworks","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/dnswus%2Factiverecord-shipworks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnswus%2Factiverecord-shipworks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnswus%2Factiverecord-shipworks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnswus%2Factiverecord-shipworks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnswus","download_url":"https://codeload.github.com/dnswus/activerecord-shipworks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055261,"owners_count":21040144,"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":["activerecord","ruby","ruby-on-rails","shipworks"],"created_at":"2024-12-23T09:39:09.872Z","updated_at":"2026-05-02T03:06:31.495Z","avatar_url":"https://github.com/dnswus.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveRecord Shipworks\nThis gem allows you to read Shipworks data via ActiveRecord in a isolated namespace `Shipworks`.\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activerecord-shipworks'\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\nActiveRecord Shipworks uses the main database connection by default. However, in most of the cases, you want to connect to Shipworks as a second database connection. You could do that by setting `ENV['SHIPWORKS_DATABASE_URL]` by using a configuration file called `config/shipworks_database.yml`.\n\n## Usage\nYou may query Shipworks data as any other ActiveRecord class:\n```ruby\n# Last 10 orders\nShipworks::Order.order(:OrderDate).last(10)\n```\n\n## Available Models\n* Order\n* OrderItem\n* OrderItemAttribute\n* OrderCharge\n* Note\n* Shipment\n* Store\n* UpsPackage\n* User\n\n### ER Diagram\n```\n                     +---------+ +---------------+  +-------------------+\n                     |         | |               |  |                   |\n                     |  Store  | |  AmazonOrder  |  |  AmazonOrderItem  |\n                     |         | |               |  |                   |\n                     +-------+-+ +-+-------------+  +---+---------------+\n                             |     |                    |\n                             |     |                    |\n                             |     |                    |\n                            /|\\    |                    |\n+---------------+         +--+-----+--+       +---------+---+      +----------------------+\n|               |\\        |           |      /|             |     /|                      |\n|  OrderCharge  +---------+   Order   +-------+  OrderItem  +------+  OrderItemAttribute  |\n|               |/        |           |      \\|             |     \\|                      |\n+---------------+         +-+-------+-+       +-------------+      +----------------------+\n                            |       |\n                            |       |\n                            |       |\n                           /|\\     /|\\\n    +--------+       +------+-+   +-+----------+         +--------------+\n    |        |      /|        |   |            |        /|              |\n    |  User  +-------+  Note  |   |  Shipment  +---------+  UpsPackage  |\n    |        |      \\|        |   |            |        \\|              |\n    +--------+       +--------+   +------------+         +--------------+\n\n```\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/dnswus/activerecord-shipworks.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnswus%2Factiverecord-shipworks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnswus%2Factiverecord-shipworks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnswus%2Factiverecord-shipworks/lists"}