octosql-plugin-mysql

command module
v0.0.0-...-06c7541 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

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
  • database

An example octosql.yml file would be:

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"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL