Repository navigation
pg v1.3.0
What's new
- SCRAM-SHA-256 authentication (RFC 5802) — works with modern PostgreSQL servers (PG 14+ defaults to SCRAM)
- PBKDF2-HMAC-SHA-256 key derivation, server signature verification
- SHA-256 and HMAC-SHA-256 implemented inline (no new dependencies)
exec_params()— parameterized queries via Extended Query protocol- Uses
$1,$2, ... placeholders; parameters sent as text values - Prevents SQL injection without manual quoting
- Uses
Auth methods supported
| Method | auth_type |
|---|---|
| Trust | 0 |
| Cleartext | 3 |
| MD5 | 5 |
| SCRAM-SHA-256 | 10 (new) |
Tests
13/13 pass