Repository navigation
Releases
Releases · nace-ai/drex-postgres
v0.3.1
Fixes to installing either script. Nothing changes in what the functions send or return, apart from the version.
- Both scripts install into a schema whose name needs quoting, such as
"ML Funcs"or"Analytics". They
failed withinvalid name syntaxorschema "analytics" does not exist. - Installing
sql/drex_http.sqlinto a second schema no longer breaks an install in thehttpextension's schema
(such aspublic). It dropped that install's_drex_settings(), so every call to it failed with
function _drex_settings() does not exist. - Requests identify themselves as
drex-postgres/0.3.1anddrex-postgres-http/0.3.1inX-Nace-Client.
Install: git clone --branch v0.3.1 https://github.com/nace-ai/drex-postgres.git, then follow the README. To upgrade from 0.3.0, check out v0.3.1, reinstall the package (PL/Python variant) and run the same script again.
v0.3.0
The first public release.
- Nine functions in two variants with the same names, arguments and results:
drex_noul,drex_choiceand
drex_score(each fortextandjsonbinput),drex_decide,drex_decide_imageanddrex_decide_batch. sql/drex.sql, for self-hosted PostgreSQL: PL/Python onnace-sdk, with the
key in the server's environment anddrex_decide_batchsending up toconcurrencyrequests at once.sql/drex_http.sql, for managed PostgreSQL that offers thehttp
extension, such as Supabase: PL/pgSQL, with the key in adrex_settingstable only its owner can read. It installs
as a role that isn't a superuser, and a caller who can't read the key can't loosen how its requests check TLS.- Both scripts revoke the functions from
PUBLICand from roles that default privileges grant new objects to, such
as Supabase'sanonandauthenticated. - Optional OpenRouter routing, with its own key and app attribution.
- Requests identify themselves as
drex-postgres/0.3.0anddrex-postgres-http/0.3.0inX-Nace-Client.
Install: git clone --branch v0.3.0 https://github.com/nace-ai/drex-postgres.git, then follow the README.