{"id":17317186,"url":"https://github.com/df7cb/postgresql-uctext","last_synced_at":"2026-01-06T09:06:30.596Z","repository":{"id":147777929,"uuid":"428435451","full_name":"df7cb/postgresql-uctext","owner":"df7cb","description":"UPPER CASE data type for PostgreSQL","archived":false,"fork":false,"pushed_at":"2022-05-20T12:39:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T07:41:36.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"M4","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/df7cb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-15T22:05:15.000Z","updated_at":"2021-11-18T23:14:17.000Z","dependencies_parsed_at":"2023-05-27T11:30:40.048Z","dependency_job_id":null,"html_url":"https://github.com/df7cb/postgresql-uctext","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/df7cb%2Fpostgresql-uctext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/df7cb%2Fpostgresql-uctext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/df7cb%2Fpostgresql-uctext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/df7cb%2Fpostgresql-uctext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/df7cb","download_url":"https://codeload.github.com/df7cb/postgresql-uctext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767360,"owners_count":20668827,"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":[],"created_at":"2024-10-15T13:15:48.321Z","updated_at":"2026-01-06T09:06:30.569Z","avatar_url":"https://github.com/df7cb.png","language":"M4","funding_links":[],"categories":[],"sub_categories":[],"readme":"UPPER CASE Text Extension For PostgreSQL\n========================================\n\nThe `uctext` extension for PostgreSQL implements a text-like datatype that\naccepts input in either case, but stores everything in UPPER CASE. It is meant\nto be used for things like hamradio callsigns that are customarily spelled in\nupper case, while being forgiving on input and searches.\n\nPostgreSQL 11 and later is supported.\n\n```\n# create extension uctext;\nCREATE EXTENSION\n\n# create table my_logbook (time timestamptz, call uctext, freq numeric, locator uctext);\nCREATE TABLE\n\n# insert into my_logbook values (now(), 'df7cb', 1.840, 'jo31hi');\nINSERT 0 1\n\n# select * from my_logbook where call = 'df7cb';\n             time              │ call  │ freq  │ locator\n───────────────────────────────┼───────┼───────┼─────────\n 2021-11-17 23:19:10.933677+01 │ DF7CB │ 1.840 │ JO31HI\n```\n\n`uctext` behaves like the normal `text` datatype in most contexts since there\nis an implicit cast from uctext to text. The only special handling is in\ncomparison operators (`= \u003c\u003e \u003c \u003c= =\u003e \u003e`) which act case-insensitive.\n\nAlso included is a `=||` operator that does prefix matches which are\ncase-insensitive when either side is uctext:\n\n```\n# select locator from my_logbook where locator =|| 'jo';\n locator\n─────────\n JO31HI\n```\n\n# Copyright and License\n\nCopyright (C) 2021 Christoph Berg \u003cmyon@debian.org\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdf7cb%2Fpostgresql-uctext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdf7cb%2Fpostgresql-uctext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdf7cb%2Fpostgresql-uctext/lists"}