{"id":18450620,"url":"https://github.com/uwdata/arquero-sql","last_synced_at":"2025-04-08T01:33:45.431Z","repository":{"id":54461269,"uuid":"315006302","full_name":"uwdata/arquero-sql","owner":"uwdata","description":"Database backend support for Arquero","archived":false,"fork":false,"pushed_at":"2022-10-31T20:09:42.000Z","size":308,"stargazers_count":24,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-23T04:11:34.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uwdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-22T09:59:44.000Z","updated_at":"2024-05-30T17:35:17.000Z","dependencies_parsed_at":"2023-01-20T18:17:25.156Z","dependency_job_id":null,"html_url":"https://github.com/uwdata/arquero-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwdata%2Farquero-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwdata%2Farquero-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwdata%2Farquero-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwdata%2Farquero-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uwdata","download_url":"https://codeload.github.com/uwdata/arquero-sql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247760847,"owners_count":20991531,"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":"2024-11-06T07:25:56.104Z","updated_at":"2025-04-08T01:33:45.108Z","avatar_url":"https://github.com/uwdata.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arquero-SQL\n[Arquero](https://github.com/uwdata/arquero) is a query processing JavaScript library.\nSo, your local machine memory is its limitation when dealing with large amount of data.\nArquero-SQL is a SQL backend support for Arquero.\nUsing the same syntax as Arquero in JavaScript, Aquero-SQL use your SQL server as an execution engine for transforming your data table.\nWith Arquero-SQL, your data is stored in a disk and can be transformed with a powerful remote machine, suited for big data analysis tasks.\n\nDemo video: https://youtu.be/RO0luOvpiOY\n\n## Setup\n### Prerequisite\nSet up at PostgreSQL server. We recommend using [Docker](https://www.docker.com/) with the official PostgreSQL [image](https://hub.docker.com/_/postgres/).\n\n```sh\nyarn\nyarn build\n\n# OR\n\nnpm install\nnpm run build\n```\n\n## Test\n### Prerequisite\nSet the following environment variables to your PostgreSQL server's credential\n  - `PGDB`: Database\n  - `PGUSER`: User name\n  - `PGPASSWORD`: Password\n  - `PGHOST`: Host name\n  - `PGPORT`: Port\n\n```sh\nyarn test\n\n# OR\n\nnpm test\n```\n\n## Usage\n```js\nimport * as aq from 'arquero';\nimport * as fs from 'fs';\nimport {db} from 'arquero-sql';\n\n// Connect to a database\nconst pg = new db.Postgres({\n  name,\n  password,\n  host,\n  database,\n  port\n});\n\n// Create a data table\nconst dt1 = pg.fromArquero(aq.table(...));\n// OR\nconst dt1 = pg.fromCSV(fs.readFileSync('path-to-file.csv'));\n\n// Transform the data table\nconst dt2 = dt1\n  .filter(d =\u003e d.Seattle \u003e 200)\n  .derive({new_col: d =\u003e d.Seattle + 10});\n\n// Observe the transformation result\nconst output = await dt2.objects();\n// OR\ndt2.print();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuwdata%2Farquero-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuwdata%2Farquero-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuwdata%2Farquero-sql/lists"}