interface
SQL.PostgresOrMySQLOptions
interface PostgresOrMySQLOptions
- allowPublicKeyRetrieval?: boolean
MySQL only. Allow the client to request the server's RSA public key during
caching_sha2_password/sha256_passwordauthentication when the connection is not protected by TLS. Disabled by default because a network attacker can substitute their own key and recover the plaintext password. Enable only for trusted local connections, or use TLS instead. - bigint?: boolean
Return values outside the i32 range as
BigInt. By default they are returned as strings. - tls?: boolean | 'allow' | BunFile | 'require' | TLSOptions | 'disable' | 'prefer' | 'verify-ca' | 'verify-full'
Whether to use TLS/SSL for the connection. A string selects the SSL mode (
"disable","allow","prefer","require","verify-ca","verify-full"). ABunFileis the CA certificate to verify the server against, the same as{ ca: Bun.file(path) }, and selects"verify-full".const sql = new SQL(url, { tls: Bun.file("./rds-ca-bundle.pem") });