{"id":22483976,"url":"https://github.com/edoceo/pg-ulid","last_synced_at":"2026-01-25T08:39:51.378Z","repository":{"id":60645764,"uuid":"218142758","full_name":"edoceo/pg-ulid","owner":"edoceo","description":"ULID Functions for PostgreSQL","archived":false,"fork":false,"pushed_at":"2019-10-29T15:27:02.000Z","size":5,"stargazers_count":58,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-26T08:58:40.899Z","etag":null,"topics":["postgresql","postgresql-extension","ulid"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edoceo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-28T20:50:27.000Z","updated_at":"2023-11-16T03:46:36.000Z","dependencies_parsed_at":"2022-10-02T15:40:10.881Z","dependency_job_id":null,"html_url":"https://github.com/edoceo/pg-ulid","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/edoceo%2Fpg-ulid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoceo%2Fpg-ulid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoceo%2Fpg-ulid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edoceo%2Fpg-ulid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edoceo","download_url":"https://codeload.github.com/edoceo/pg-ulid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228499972,"owners_count":17929977,"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","postgresql-extension","ulid"],"created_at":"2024-12-06T17:10:01.241Z","updated_at":"2026-01-25T08:39:51.371Z","avatar_url":"https://github.com/edoceo.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# ULID Extension for PostgreSQL\n\nCreates a ULID datatype as a 128bit integer, which we hope operates faster than text.\n\nCreates some helper functions to create, compare and format\n\nThe ULID function is taken from [XXX]\nand other inspiration from [THE GO ONE]\n\n## Installation\n\nGet this code, say `make`, copy the *.so* file to your PGHOME/xxx\n\n```shell\nsudo apt install build-essential postgresql-server-dev-NN\ngit clone https://github.com/skeeto/ulid-c.git\nmake\nsudo make install-strip\n```\n\n\n```sql\nCREATE EXTENSION pg_ulid;\n```\n\n\n## Usage\n\n```sql\nSELECT ulid_create();\nSELECT ulid_create(now() - '37 days'::interval);\n```\n\n```sql\nCREATE TABLE ulid_pk_example (\n\tid ulid not null default ulid_create(),\n\tmeta jsonb\n);\n```\n\n\n## Dependencies\n\n* https://github.com/ulid/spec\n* https://github.com/skeeto/ulid-c\n\n\n\n## See Also\n\n* http://big-elephants.com/2015-10/writing-postgres-extensions-part-i/\nhttp://big-elephants.com/2015-10/writing-postgres-extensions-part-ii/\nhttp://sebastian-mader.net/databases-gis/creating-building-and-using-postgresql-extensions-in-c-c/\nhttps://github.com/adjust/postgresql_extension_demo/tree/part_i\n\n* https://github.com/postgres/postgres/tree/master/contrib/uuid-ossp\n\n\n\n\n\n* https://www.postgresql.org/docs/current/sql-createtype.html\n* https://www.postgresql.org/docs/current/datatype-uuid.html\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedoceo%2Fpg-ulid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedoceo%2Fpg-ulid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedoceo%2Fpg-ulid/lists"}