Skip to content

Commit

Permalink
fix(sql) expose alias in SQLOption type (#17122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari authored Feb 7, 2025
1 parent 93af287 commit c970922
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/bun-types/bun.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2012,24 +2012,40 @@ declare module "bun" {
url?: URL | string;
/** Database server hostname */
host?: string;
/** Database server hostname (alias for host) */
hostname?: string;
/** Database server port number */
port?: number | string;
/** Database user for authentication */
username?: string;
/** Database user for authentication (alias for username) */
user?: string;
/** Database password for authentication */
password?: string;
/** Database password for authentication (alias for password) */
pass?: string;
/** Name of the database to connect to */
database?: string;
/** Name of the database to connect to (alias for database) */
db?: string;
/** Database adapter/driver to use */
adapter?: string;
/** Maximum time in seconds to wait for connection to become available */
idleTimeout?: number;
/** Maximum time in seconds to wait for connection to become available (alias for idleTimeout) */
idle_timeout?: number;
/** Maximum time in seconds to wait when establishing a connection */
connectionTimeout?: number;
/** Maximum time in seconds to wait when establishing a connection (alias for connectionTimeout) */
connection_timeout?: number;
/** Maximum lifetime in seconds of a connection */
maxLifetime?: number;
/** Maximum lifetime in seconds of a connection (alias for maxLifetime) */
max_lifetime?: number;
/** Whether to use TLS/SSL for the connection */
tls?: TLSOptions | boolean;
/** Whether to use TLS/SSL for the connection (alias for tls) */
ssl?: TLSOptions | boolean;
/** Callback function executed when a connection is established */
onconnect?: (client: SQL) => void;
/** Callback function executed when a connection is closed */
Expand Down

0 comments on commit c970922

Please sign in to comment.