{"id":18972395,"url":"https://github.com/wuriyanto48/pgwbase64","last_synced_at":"2026-07-06T06:34:03.212Z","repository":{"id":129542992,"uuid":"526870700","full_name":"wuriyanto48/pgwbase64","owner":"wuriyanto48","description":"Base64 PostgreSQL Extension","archived":false,"fork":false,"pushed_at":"2022-12-21T18:36:42.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T08:49:43.121Z","etag":null,"topics":["c","postgresql-extension"],"latest_commit_sha":null,"homepage":"","language":"C","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/wuriyanto48.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-20T08:37:20.000Z","updated_at":"2022-09-06T06:01:01.000Z","dependencies_parsed_at":"2023-05-26T16:00:30.597Z","dependency_job_id":null,"html_url":"https://github.com/wuriyanto48/pgwbase64","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wuriyanto48/pgwbase64","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpgwbase64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpgwbase64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpgwbase64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpgwbase64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuriyanto48","download_url":"https://codeload.github.com/wuriyanto48/pgwbase64/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuriyanto48%2Fpgwbase64/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35180933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":["c","postgresql-extension"],"created_at":"2024-11-08T15:08:22.194Z","updated_at":"2026-07-06T06:34:03.168Z","avatar_url":"https://github.com/wuriyanto48.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wbase64\n\nBase64 PostgreSQL Extension\n\n## Motivation/ Why ?\nThis is just part of my learning process\n\n## Getting started\n\n### Building\n\nClone\n```shell\n$ git clone https://github.com/wuriyanto48/pgwbase64.git\n```\n\nInstall PostgreSQL Development server and client\n```shell\n$ sudo apt install libpq-dev\n$ sudo apt-get install -y postgresql-server-dev-10\n```\n\nCompile extensions, Create and Copy SHARED Library to `/usr/lib/postgresql/10/lib/`\n```shell\n$ cc -fPIC -c wbase64.c -I /usr/include/postgresql/10/server/\n$ cc -shared -o wbase64.so wbase64.o\n$ sudo cp wbase64.so  /usr/lib/postgresql/10/lib/\n```\n\n#### Notes\nTo find out what `$libdir` is referring to, run the following command:\n```shell\n$ pg_config --pkglibdir\n/usr/lib/postgresql/10/lib\n```\n\nInstall extensions\n```shell\n$ sudo make USE_PGXS=1 install\n```\n\n### Install to Database\n\nLogin as superuser\n```shell\n$ sudo --login --user postgres\n$ psql\n```\n\nConnect to specific Database\n```shell\n$ \\c database_name;\n```\n\nShow installed extensions\n```shell\n$ select extname from pg_extension;\n```\n\nDrop extensions\n```shell\n$ DROP EXTENSION IF EXISTS wbase64;\n```\n\nCreate extensions\n```shell\n$ CREATE EXTENSION IF NOT EXISTS wbase64;\n```\n\n### Test the extensions\n\nEncode\n```shell\ndatabase_name=# select pgw_b64_encode('this is dark') as res;\n       res\n------------------\n dGhpcyBpcyBkYXJr\n(1 row)\n```\n\nDecode\n```shell\ndatabase_name=# select pgw_b64_decode('dGhpcyBpcyBkYXJr') as res;\n     res      \n--------------\n this is dark\n(1 row)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fpgwbase64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuriyanto48%2Fpgwbase64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuriyanto48%2Fpgwbase64/lists"}