SQLOptions

Bun

Symbol

SQLOptions

type SQLOptions =

Configuration options for SQL client connection and behavior

const config: SQLOptions = {
  host: 'localhost',
  port: 5432,
  user: 'dbuser',
  password: 'secretpass',
  database: 'myapp',
  idleTimeout: 30,
  max: 20,
  onconnect: (client) => {
    console.log('Connected to database');
  }
};