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

    Function createFlightSqlClient

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

      Parameters

      Returns FlightSqlClient

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