Factory function to create a FlightSqlClient.
This is the recommended way to create a Flight SQL client as it provides a cleaner API and better tree-shaking support.
Configuration options for the client
A new FlightSqlClient instance
const client = createFlightSqlClient({ url: "https://flight.example.com:8815", auth: { type: "bearer", token: "my-token" }})try { const table = await client.query("SELECT * FROM users") console.log(`Found ${table.numRows} users`)} finally { client.close()} Copy
const client = createFlightSqlClient({ url: "https://flight.example.com:8815", auth: { type: "bearer", token: "my-token" }})try { const table = await client.query("SELECT * FROM users") console.log(`Found ${table.numRows} users`)} finally { client.close()}
Factory function to create a FlightSqlClient.
This is the recommended way to create a Flight SQL client as it provides a cleaner API and better tree-shaking support.