Parse a JSON connection string (passed as apiKey) into a config object. Falls back to environment-variable defaults for any missing fields.
Accepted JSON shape:
{ "host": "localhost", "port": 5432, "database": "vectors", "user": "postgres", "password": "secret", "schema": "public", "ssl": false} Copy
{ "host": "localhost", "port": 5432, "database": "vectors", "user": "postgres", "password": "secret", "schema": "public", "ssl": false}
Parse a JSON connection string (passed as apiKey) into a config object. Falls back to environment-variable defaults for any missing fields.
Accepted JSON shape: