{"id":21275870,"url":"https://github.com/pfmt/serialkey","last_synced_at":"2025-10-09T12:32:55.195Z","repository":{"id":61628105,"uuid":"491805153","full_name":"pfmt/serialkey","owner":"pfmt","description":"Dynamically named sequences for Go.","archived":false,"fork":false,"pushed_at":"2022-10-24T21:51:08.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T12:32:19.485Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-05-13T07:46:35.000Z","updated_at":"2022-10-11T08:25:52.000Z","dependencies_parsed_at":"2023-01-20T11:17:54.567Z","dependency_job_id":null,"html_url":"https://github.com/pfmt/serialkey","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pfmt/serialkey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fserialkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fserialkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fserialkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fserialkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfmt","download_url":"https://codeload.github.com/pfmt/serialkey/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfmt%2Fserialkey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001445,"owners_count":26083078,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang"],"created_at":"2024-11-21T09:39:24.897Z","updated_at":"2025-10-09T12:32:55.176Z","avatar_url":"https://github.com/pfmt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serialkey\n\n[![Build Status](https://cloud.drone.io/api/badges/pfmt/serialkey/status.svg)](https://cloud.drone.io/pfmt/serialkey)\n[![Go Reference](https://pkg.go.dev/badge/github.com/pfmt/serialkey.svg)](https://pkg.go.dev/github.com/pfmt/serialkey)\n\nDynamically named sequences for Go.  \nSource files are distributed under the BSD-style license.\n\n## About\n\nThe software is considered to be at a alpha level of readiness,\nits extremely slow and allocates a lots of memory.\n\n## PostgreSQL\n\nCreate table `make postgresql` or\n`cat psql_create_table.sql | sed --expression='s/{{\\.Table}}/serialkeys/g'`\n\n```sql\nCREATE TABLE IF NOT EXISTS serialkeys (\n    key text primary key,\n    value bigint NOT NULL,\n    created_at timestamp with time zone NOT NULL DEFAULT now(),\n    updated_at timestamp with time zone\n);\n```\n\n## Benchmark\n\n```sh\n$ go test -count=1 -race -bench ./...\ngoos: linux\ngoarch: amd64\npkg: github.com/pfmt/serialkey\ncpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz\nBenchmarkLocalNext/main_test.go:66-8         \t 6259942\t       200.5 ns/op\nBenchmarkPgxNext/main_test.go:66-8           \t    2852\t    362782 ns/op\nPASS\nok  \tgithub.com/pfmt/serialkey\t3.031s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfmt%2Fserialkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfmt%2Fserialkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfmt%2Fserialkey/lists"}