@qualithm/arrow-flight-sql-js
Arrow Flight SQL client for JavaScript and TypeScript runtimes.
import { FlightSqlClient } from "@qualithm/arrow-flight-sql-js"const client = new FlightSqlClient({ host: "localhost", port: 50051, tls: false, auth: { type: "bearer", token: "my-token" }})await client.connect()const result = await client.query("SELECT * FROM users")for await (const batch of result.stream()) { console.log(batch.numRows)}await client.close() Copy
import { FlightSqlClient } from "@qualithm/arrow-flight-sql-js"const client = new FlightSqlClient({ host: "localhost", port: 50051, tls: false, auth: { type: "bearer", token: "my-token" }})await client.connect()const result = await client.query("SELECT * FROM users")for await (const batch of result.stream()) { console.log(batch.numRows)}await client.close()
@qualithm/arrow-flight-sql-js
Arrow Flight SQL client for JavaScript and TypeScript runtimes.
Example