{"id":17360572,"url":"https://github.com/ivanyu/pg-uuids-v1-compare","last_synced_at":"2026-04-30T00:32:56.225Z","repository":{"id":151105671,"uuid":"54336903","full_name":"ivanyu/pg-uuids-v1-compare","owner":"ivanyu","description":"PostgreSQL function to compare version 1 (time-based) UUIDs by timestamps and counter, and tests for it","archived":false,"fork":false,"pushed_at":"2016-03-28T11:06:52.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T20:13:09.693Z","etag":null,"topics":["blog-post","postgresql","uuid"],"latest_commit_sha":null,"homepage":"https://ivanyu.me/blog/2016/03/28/time-based-version-1-uuids-ordering-in-postgresql/","language":"Scala","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/ivanyu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-20T19:46:01.000Z","updated_at":"2022-12-10T05:36:11.000Z","dependencies_parsed_at":"2023-07-15T22:46:12.551Z","dependency_job_id":null,"html_url":"https://github.com/ivanyu/pg-uuids-v1-compare","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/ivanyu%2Fpg-uuids-v1-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fpg-uuids-v1-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fpg-uuids-v1-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanyu%2Fpg-uuids-v1-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanyu","download_url":"https://codeload.github.com/ivanyu/pg-uuids-v1-compare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245881349,"owners_count":20687713,"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":["blog-post","postgresql","uuid"],"created_at":"2024-10-15T19:26:14.469Z","updated_at":"2026-04-30T00:32:56.197Z","avatar_url":"https://github.com/ivanyu.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg-uuids-v1-compare\nPostgreSQL function to compare version 1 (time-based) UUIDs based on timestamps, and tests for it.\n\n**Example:**\n\n```\nSELECT uuids_v1_compare(uuid('762ca430-eed5-11e5-8ca8-4bebdf3c407a'),\n                        uuid('762cf250-eed5-11e5-8ca8-4bebdf3c407a'))\n\nuuids_v1_compare\nsmallint\n----------------\n-1\n```\n\n[A blog post](https://ivanyu.me/blog/2016/03/28/time-based-version-1-uuids-ordering-in-postgresql/) about it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanyu%2Fpg-uuids-v1-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanyu%2Fpg-uuids-v1-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanyu%2Fpg-uuids-v1-compare/lists"}