Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alash3al/sql2slack
send sql results periodically to slack
https://github.com/alash3al/sql2slack
Last synced: 3 months ago
JSON representation
send sql results periodically to slack
- Host: GitHub
- URL: https://github.com/alash3al/sql2slack
- Owner: alash3al
- License: apache-2.0
- Created: 2020-06-28T19:42:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T06:50:49.000Z (about 4 years ago)
- Last Synced: 2024-06-20T12:00:07.420Z (5 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 35
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SQL2Slack
=========
> a cron deamon that executes the specified sql query and forward its result to slack ()Features
========
- Tiny & Portable.
- Works with multiple sql engine.
- Customize the slack message using javascript as well [underscore.js](https://underscorejs.org/).
- Cron like syntax for scheduling sql jobs.
- Uses [hcl language](https://github.com/hashicorp/hcl) for structured configurations.
- Ability to define a job per single file for future maintainability of large jobs.Quick Overview
==============
```hcl
job tst {
// slack-channel webhook url
channel = "https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxx"// which sql driver do you use?
driver = "mysql"// data source name (connection string)
dsn = "root:root@tcp(127.0.0.1:3306)/dbname"// the query this is a multiline example, you can just write the following
// query = "select * from users"
query = <