Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cube2222/octosql-plugin-mysql
https://github.com/cube2222/octosql-plugin-mysql
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/cube2222/octosql-plugin-mysql
- Owner: cube2222
- License: mpl-2.0
- Created: 2021-12-23T17:09:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T21:06:35.000Z (over 1 year ago)
- Last Synced: 2024-12-15T14:53:39.606Z (7 days ago)
- Language: Go
- Size: 95.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OctoSQL MySQL Plugin
This plugin adds MySQL support to OctoSQL.
## Installation
```
octosql plugin install mysql
```## Configuration
The available configuration variables are:
- host
- port
- user
- password
- databaseAn example octosql.yml file would be:
```yaml
databases:
- name: mydb
type: mysql
config:
host: localhost
port: 3306
database: mydatabase
user: myuser
password: mypassword
```## Usage
After configuring a database as described above you can use tables from the configured database in your OctoSQL queries:
```
octosql "SELECT * FROM mydb.mytable" --describe
octosql "SELECT COUNT(*) FROM mydb.mytable"
```