{"id":18698224,"url":"https://github.com/mluby/sql-as-a-service","last_synced_at":"2025-09-25T23:21:46.587Z","repository":{"id":57368294,"uuid":"98365427","full_name":"mLuby/sql-as-a-service","owner":"mLuby","description":"Firebase for SQL","archived":false,"fork":false,"pushed_at":"2017-07-27T18:21:59.000Z","size":25,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-29T11:46:13.485Z","etag":null,"topics":["saas","service","sql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mLuby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-26T01:31:16.000Z","updated_at":"2023-08-02T17:53:16.000Z","dependencies_parsed_at":"2022-08-23T20:11:04.434Z","dependency_job_id":null,"html_url":"https://github.com/mLuby/sql-as-a-service","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/mLuby%2Fsql-as-a-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLuby%2Fsql-as-a-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLuby%2Fsql-as-a-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLuby%2Fsql-as-a-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mLuby","download_url":"https://codeload.github.com/mLuby/sql-as-a-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558927,"owners_count":19658930,"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":["saas","service","sql"],"created_at":"2024-11-07T11:27:29.491Z","updated_at":"2025-09-25T23:21:41.552Z","avatar_url":"https://github.com/mLuby.png","language":"JavaScript","readme":"# sqlaas: SQL-as-a-service\nFirebase for SQL\n\n## Quick Start\n1. Create a free instance of this app on Heroku by clicking this button:\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n2. When it's done deploying, click View App button and record the URL of your heroku app. It'll be something like \"https://calm-plateau-12345.herokuapp.com\".\n3. Follow the usage guide on connecting browser and node clients to start reading and writing SQL!\n\n## Usage\n```js\nconst dbUrl = \"https://\u003cAPP_NAME\u003e.herokuapp.com\"\nsqlaas(\"select * from employees;\", dbUrl)\n.then(queryResults =\u003e console.log(\"query results\", queryResults))\n.catch(error =\u003e console.error(error))\n// expect 3 rows with columns id title name salary start_date\n```\nYou can also write SQL directly in your browser URL bar:\n\u003ehttps://\u003cAPP_NAME\u003e.herokuapp.com/?`sql=select * from employees;`\n\n## Installation\n### Node:\n```sh\nnpm install --save sqlaas\n```\n```js\nconst sqlaas = require(\"sqlaas\")\n```\n### Browser:\n```html\n\u003cscript src=\"../src/client.js\"\u003e\u003c/script\u003e\n\u003c!-- available as window.sqlaas --\u003e\n```\n\n## Server\nTo run your own SQL-as-a-service, clone down this repo and run\n```sh\nnpm install\nnpm start\n```\nYou'll need postgres running.\n`npm start` will tell you what to do if anything is missing.\nIt will also create an example \"employees\" database if none exists.\n\n## Notes\n- Heroku doesn't allow programmatic database creation, so this has to be per-user.\n- No migrations, backups, or sharding; NOT FOR PRODUCTION! Very insecure!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmluby%2Fsql-as-a-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmluby%2Fsql-as-a-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmluby%2Fsql-as-a-service/lists"}