{"id":39965195,"url":"https://github.com/qoretechnologies/module-pgsql","last_synced_at":"2026-01-18T21:35:26.003Z","repository":{"id":2186218,"uuid":"39436737","full_name":"qoretechnologies/module-pgsql","owner":"qoretechnologies","description":"Qore PostgreSQL database driver module","archived":false,"fork":false,"pushed_at":"2025-12-29T17:26:38.000Z","size":685,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"develop","last_synced_at":"2026-01-01T22:02:05.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qoretechnologies.png","metadata":{"files":{"readme":"README","changelog":"NEWS","contributing":null,"funding":null,"license":"COPYING.LGPL","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-07-21T09:31:08.000Z","updated_at":"2025-12-29T17:24:04.000Z","dependencies_parsed_at":"2025-05-05T12:32:21.090Z","dependency_job_id":"3f015ef4-f58e-4339-b9aa-4bb3913eb701","html_url":"https://github.com/qoretechnologies/module-pgsql","commit_stats":null,"previous_names":["qoretechnologies/module-pgsql"],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/qoretechnologies/module-pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qoretechnologies","download_url":"https://codeload.github.com/qoretechnologies/module-pgsql/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28551202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-18T21:35:25.928Z","updated_at":"2026-01-18T21:35:25.993Z","avatar_url":"https://github.com/qoretechnologies.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"pgsql (PostgreSQL) module for Qore\nby David Nichols / Qore Technologies, s.r.o.\n\nRequires qore 0.9+ and PostgreSQL client headers and libraries to build\n\nThis module is released under a choice of two licenses: LGPL 2.1 and MIT; see\nCOPYING.LGPL and COPYING.MIT for more information\n\nThe driver supports the following features:\n* All builtin PostgreSQL data types are supported including:\n  - Basic types: boolean, bytea, int2, int4, int8, float4, float8, numeric, money\n  - Text types: text, varchar, char, name\n  - Date/time types: date, time, timetz, timestamp, timestamptz, interval\n  - Structured types: json, jsonb, xml\n  - Network types: macaddr, inet, cidr\n  - Geometric types: point, line, lseg, box, path, polygon, circle\n  - Binary types: bytea, bit, varbit\n* Multi-dimensional arrays are supported for binding and retrieving\n* Is thread-safe\n* Stored procedure execution is supported\n* Transaction management is supported\n* Transparent character encoding conversion is supported if necessary\n* The \"optimal-numbers\" option is set by default as of module version 2.2\n* Supports a server timezone setting for correctly handling date/time values\n  when communicating with a DB server in another time zone\n* The prepared statement API is supported (SQLStatement class)\n* Automatic reconnection to the server if the connection is lost (when not in a transaction)\n* Full support for PostgreSQL error codes in exceptions\n\nThe driver's name is \"pgsql\" and the Datasource type constant is SQL::DSPGSQL\nExample: Datasource db = new Datasource(DSPGSQL);\nExample: Datasource db = new Datasource(\"pgsql\");\nExample: Datasource db = new Datasource(\"pgsql:user/pass@dbname%hostname:5432\");\n\nThe Qore pgsql driver uses binary communication with PostgreSQL servers and sets\nper-connection variables based on server settings (i.e. it automatically determines\nif the server is using floats or 64-bit integers for time values, etc).\n\nThis module is stable and has been extensively tested.\n\nDocumentation: docs/pgsql-module-doc.html (generated by Doxygen)\nTest script: test/pgsql.qtest\n\n\nDRIVER OPTIONS\n--------------\n\nThe driver supports the following options:\n* \"optimal-numbers\": return numeric types as an integer if possible, otherwise as\n  an arbitrary-precision number (default)\n* \"string-numbers\": return numeric types as strings (for backwards-compatibility)\n* \"numeric-numbers\": return numeric types as arbitrary-precision number values\n* \"timezone\": set the server's time zone (region name like \"Europe/Prague\" or\n  UTC offset like \"+01:00\")\n\nOptions can be set in the Datasource constructor:\n  Datasource db(\"pgsql:user/pass@dbname{numeric-numbers,timezone=Europe/Vienna}\");\n\n\nLICENSE\n-------\nThe source code is released under the LGPL 2.1 and MIT licenses; either license\nmay be used at the user's discretion. Note that both licenses are treated\nequally by the Qore library in the sense that both licenses allow the module\nto be loaded without restrictions by the Qore library (even when the Qore\nlibrary is initialized in GPL mode).\nSee COPYING.MIT and COPYING.LGPL for details on the open-source licenses.\n\n\nBUILD AND INSTALL\n-----------------\n\nPostgreSQL DBI module requires PostgreSQL 8+ client libraries and headers.\nIf your PostgreSQL libraries are in a non-standard location you can use the\n--with-pgsql configure option or set the PGSQL_DIR environment variable.\n\nUsing CMake (recommended):\n\n  mkdir build\n  cd build\n  cmake ..\n  make\n  sudo make install\n\nUsing autotools:\n\n  ./configure\n  make\n  sudo make install\n\nThe configure script will find out where your qore module directory is found\nand set this for the install directory.\n\n\nBUILD FROM GIT\n--------------\n\nFor autotools:\n  ./reconf.sh\n  ./configure\n  make\n  sudo make install\n\nFor CMake:\n  mkdir build\n  cd build\n  cmake ..\n  make\n  sudo make install\n\n\nRUNNING TESTS\n-------------\n\nSet the QORE_DB_CONNSTR_PGSQL environment variable to a valid PostgreSQL\nconnection string, then run:\n\n  qore test/pgsql.qtest\n\nExample:\n  export QORE_DB_CONNSTR_PGSQL=\"pgsql:testuser/testpass@testdb%localhost:5432\"\n  qore test/pgsql.qtest\n\nDocker-based tests are also available in test/docker_test/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoretechnologies%2Fmodule-pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-pgsql/lists"}