@qualithm/arrow-flight-client - v0.1.4
    Preparing search index...

    Function createFlightClient

    • 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.

      Parameters

      Returns FlightClient

      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()
      }