{"id":28665489,"url":"https://github.com/lancedb/flight-sql-js-client","last_synced_at":"2025-06-28T04:36:25.313Z","repository":{"id":267133936,"uuid":"900349676","full_name":"lancedb/flight-sql-js-client","owner":"lancedb","description":"A JavaScript client for FlightSQL","archived":false,"fork":false,"pushed_at":"2025-01-07T15:30:18.000Z","size":456,"stargazers_count":9,"open_issues_count":2,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-13T13:49:57.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lancedb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-08T14:57:25.000Z","updated_at":"2025-04-14T19:09:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ac32f13-79da-4c42-953b-de695249a804","html_url":"https://github.com/lancedb/flight-sql-js-client","commit_stats":null,"previous_names":["lancedb/flight-sql-js-client"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lancedb/flight-sql-js-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancedb%2Fflight-sql-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancedb%2Fflight-sql-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancedb%2Fflight-sql-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancedb%2Fflight-sql-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lancedb","download_url":"https://codeload.github.com/lancedb/flight-sql-js-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lancedb%2Fflight-sql-js-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262376235,"owners_count":23301344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-13T13:38:42.264Z","updated_at":"2025-06-28T04:36:25.303Z","avatar_url":"https://github.com/lancedb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Client for FlightSQL\n\nThis is a JavaScript client for FlightSQL. It allows you to easily query FlightSQL servers from your JavaScript applications.\n\nWarning: This client is still experimental and in heavy development. If you'd like to help contribute, please reach out to us\nat the [LanceDB Discord server](https://discord.gg/G5DcmnZWKB).\n\nCurrently all testing is done on Node.\n\n## Installation\n\nYou can install the client using npm:\n\n```bash\nnpm install @lancedb/arrow-flight-sql-client\n```\n\n## Usage\n\nTo use the client, you first need to connect to your database:\n\n```javascript\nimport { Client } from \"@lancedb/arrow-flight-sql-client\";\n\nconst client = await Client.connect({\n  host: \"mydb.com:10025\",\n  username: \"lancedb\",\n  password: \"password\",\n});\n```\n\nOnce you have connected to your database, you can run queries:\n\n```javascript\nconst result = await client.query(\"SELECT * FROM flights WHERE origin = 'SFO'\");\n```\n\nQuery results can be returned in a variety of formats but the simplest thing to do is to return them as an array of objects:\n\n```javascript\ninterface FlightRecord {\n    origin: string;\n    destination: string;\n}\n\nconst flights = (await result.collectToObjects()) as FlightRecord[];\nconsole.log(flights);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancedb%2Fflight-sql-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancedb%2Fflight-sql-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancedb%2Fflight-sql-js-client/lists"}