{"id":16294707,"url":"https://github.com/valve/vostok","last_synced_at":"2026-03-04T07:01:44.649Z","repository":{"id":7546168,"uuid":"8898801","full_name":"Valve/vostok","owner":"Valve","description":"sick pg import","archived":false,"fork":false,"pushed_at":"2013-03-25T08:06:46.000Z","size":171,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T23:56:46.434Z","etag":null,"topics":[],"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/Valve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-20T07:46:51.000Z","updated_at":"2019-04-05T17:46:23.000Z","dependencies_parsed_at":"2022-09-22T13:30:46.225Z","dependency_job_id":null,"html_url":"https://github.com/Valve/vostok","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Valve/vostok","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valve%2Fvostok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valve%2Fvostok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valve%2Fvostok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valve%2Fvostok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valve","download_url":"https://codeload.github.com/Valve/vostok/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valve%2Fvostok/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-10T20:16:13.339Z","updated_at":"2026-03-04T07:01:44.621Z","avatar_url":"https://github.com/Valve.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vostok\n\n[![Build Status](https://travis-ci.org/Valve/vostok.png)](https://travis-ci.org/Valve/vostok)\n[![Coverage Status](https://coveralls.io/repos/Valve/vostok/badge.png?branch=master)](https://coveralls.io/r/Valve/vostok)\n\nSick pg import\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'vostok'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install vostok\n\n## Usage\n\nVostok works directly with PG gem, no other dependencies\n\n```ruby\n\nrequire 'vostok'\n\n# this will create an instance of `PG::Connection` inside, open it, import data and close it\nimport = Vostok::Import.new(dbname: 'test', user: 'developer', password: 'r00t')\n\ndata = []\n1_000.times do\n  data \u003c\u003c ['String', 99]\nend\n\nimport.start(:customers, [:name, :balance], data)\n\n```\n\n### It is also possible to use external `PG::Connection`\n\n```ruby\n\nconnection = get_external_pg_connection()\n\n# this will use given connection and will not try to close it\nimport = Vostok::Import.new(connection)\n\ndata = []\n1_000.times do\n  data \u003c\u003c ['String', 99]\nend\n\nimport.start(:customers, [:name, :balance], data)\n\n```\n\nWhat Vostok does not do:\n\n1. Run validations\n2. Integrates with your ORM\n3. Works with databases, other than PostgreSQL\n4. Sanitizes your data\n\nHowever, what it does is insert rows at a sick rate.\n\n`\n10_000 rows inserted with AR - 18 seconds\n`\n\n`\n10_000 rows inserted with Vostok - 0.2 seconds\n`\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Add your tests and run them with `rspec spec`\n4. Commit your changes (`git commit -am 'Add some feature'`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create new Pull Request\n\n\n## License\n\n\nCopyright (c) 2013 Valentin Vasilyev\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalve%2Fvostok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalve%2Fvostok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalve%2Fvostok/lists"}