Factory function to create a FlightClient.
This is the recommended way to create a Flight client as it provides a cleaner API and better tree-shaking support.
Configuration options for the client
A new FlightClient instance
const client = createFlightClient({ url: "https://flight.example.com:8815", headers: { "Authorization": "Bearer token" }})try { const info = await client.getFlightInfo({ type: "path", path: ["my-dataset"] }) console.log(info)} finally { client.close()} Copy
const client = createFlightClient({ url: "https://flight.example.com:8815", headers: { "Authorization": "Bearer token" }})try { const info = await client.getFlightInfo({ type: "path", path: ["my-dataset"] }) console.log(info)} finally { client.close()}
Factory function to create a FlightClient.
This is the recommended way to create a Flight client as it provides a cleaner API and better tree-shaking support.