property
SQL.PostgresOrMySQLOptions.tls
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"). A BunFile is 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") });