{"id":13813431,"url":"https://github.com/wang502/slack-sql","last_synced_at":"2025-12-30T00:56:52.032Z","repository":{"id":85160996,"uuid":"58578407","full_name":"wang502/slack-sql","owner":"wang502","description":":tada: Bring SQL console to Slack","archived":false,"fork":false,"pushed_at":"2017-01-12T02:54:21.000Z","size":1452,"stargazers_count":117,"open_issues_count":1,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-04T04:04:05.592Z","etag":null,"topics":["heroku","pygresql","slack","slack-bot","sql","tool"],"latest_commit_sha":null,"homepage":"","language":"Python","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/wang502.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-11T20:26:38.000Z","updated_at":"2024-08-04T04:04:10.862Z","dependencies_parsed_at":null,"dependency_job_id":"68e0e5f9-9cbd-4edb-974e-7f6565bc7650","html_url":"https://github.com/wang502/slack-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/wang502%2Fslack-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang502%2Fslack-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang502%2Fslack-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang502%2Fslack-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wang502","download_url":"https://codeload.github.com/wang502/slack-sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225319222,"owners_count":17455727,"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":["heroku","pygresql","slack","slack-bot","sql","tool"],"created_at":"2024-08-04T04:01:17.538Z","updated_at":"2025-12-30T00:56:51.973Z","avatar_url":"https://github.com/wang502.png","language":"Python","readme":"#Slack-SQL\n![screenshot](http://g.recordit.co/bpXw88G5hz.gif)\n\n## Install PyGreSQL using pip\n\nThe query execution is based on PostgreSQL's python library -- [PyGreSQL](http://www.pygresql.org/), it needs to be installed on the server first.\n\n- On terminal, open bash\n```\n  $sudo bash\n```\n- Adding system variables\n```\n  $export CFLAGS=-Qunused-arguments\n  $export CPPFLAGS=-Qunused-arguments\n```\n- Install\n```\n  $pip install PyGreSQL\n```\n\n## Install PyGreSQL from source\ngo into PostgreSQL-5.0 folder, type the folowing commands\n```\npython setup.py build\npython setup.py install\n```\n## Set up:\n1. Clone this repo\n2. Config your database name, host, port, user name, and password in ```connection.py```\n```python\ndb = DB(dbname='',host='',port= ,user='',passwd='')\n```\n3. Deploy this to server(For example, Heroku).\n4. Add this integration to your Slack. Specify your url in the Slack integration URL.\n5. All set!\n\n## Deploy to Heroku\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n## Slack example command:\n- create table:\n```\n  /sql create table users(id primary key, name varchar, email varchar, age int)\n```\n- Insert data:\n```\n  /sql insert into users values(1, 'Seth Wang')\n```\n- selection:\n```\n  /sql select users.name from users where id=1\n```\n- deletion\n```\n  /sql delete from users where id=2\n```\n","funding_links":[],"categories":["HarmonyOS","Python"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang502%2Fslack-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwang502%2Fslack-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang502%2Fslack-sql/lists"}