{"id":17449379,"url":"https://github.com/jqr/postgres_sequence_support","last_synced_at":"2025-06-27T13:35:29.029Z","repository":{"id":396322,"uuid":"14352","full_name":"jqr/postgres_sequence_support","owner":"jqr","description":"Support for manipulating PostgreSQL sequences from ActiveRecord.","archived":false,"fork":false,"pushed_at":"2017-09-11T16:32:54.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T10:15:05.502Z","etag":null,"topics":["postgresql","rails","ruby"],"latest_commit_sha":null,"homepage":"","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/jqr.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-05-04T00:51:32.000Z","updated_at":"2020-04-16T10:24:26.000Z","dependencies_parsed_at":"2022-07-16T14:18:24.003Z","dependency_job_id":null,"html_url":"https://github.com/jqr/postgres_sequence_support","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/jqr%2Fpostgres_sequence_support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fpostgres_sequence_support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fpostgres_sequence_support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fpostgres_sequence_support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jqr","download_url":"https://codeload.github.com/jqr/postgres_sequence_support/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jqr%2Fpostgres_sequence_support/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258864926,"owners_count":22769959,"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":["postgresql","rails","ruby"],"created_at":"2024-10-17T21:37:06.562Z","updated_at":"2025-06-27T13:35:28.981Z","avatar_url":"https://github.com/jqr.png","language":"Ruby","readme":"= Postgres Sequence Support\n\nEasy manipulation of PostgreSQL sequences from ActiveRecord.\n\n== Examples\n\n  User.next_id              # =\u003e 1\n  User.current_id           # =\u003e 1\n\n  c = ActiveRecord::Base.connection\n  c.set_sequence('users_id_seq', 1000)\n  c.next_in_sequence('users_id_seq')      # =\u003e 1001\n  \n  # Note : create sequence don't do anything if sequence already exists\n  c.create_sequence('my_own_seq')\n  c.next_in_sequence('my_own_seq')        # =\u003e 1\n  \n  # You can specify sequence start\n  c.create_sequence('my_own_seq', 1001)\n  c.next_in_sequence('my_own_seq')        # =\u003e 1001\n  \n  # Check if sequence exists\n  c.sequence_exists?('my_own_seq')        # =\u003e true\n  c.sequence_exists?('my_other_seq')      # =\u003e false\n  \n  # Drop sequence if it exists\n  c.drop_sequence('my_own_seq')\n  \n  \n== Install\n\nAs a Rails plugin.\n\n  ./script/plugin install git://github.com/jqr/postgres_sequence_support.git\n\nPrefer gems? Add this to your environment.rb and run the following command.\n\n  config.gem 'postgres_sequence_support'\n\n  $ rake gems:install\n\n== Docs\n\nhttp://rdoc.info/projects/jqr/postgres_sequence_support\n\n\nHomepage:: http://github.com/jqr/postgres_sequence_support\nLicense:: Copyright (c) 2008 Elijah Miller \u003cmailto:elijah.miller@gmail.com\u003e, released under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjqr%2Fpostgres_sequence_support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjqr%2Fpostgres_sequence_support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjqr%2Fpostgres_sequence_support/lists"}