0.2.4 • Published 6 years ago

procedural-mysql v0.2.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

PROCEDURAL MYSQL

CLI to make more easy write functions on mysql and uploads to mysql server

Installation

    npm install -g procedural-mysql

The configuration file is on the root project folder and it's called procedural-mysql.config.json

config file

{
    "directory": "sql",
    "db": {
        "user": "root",
        "host": "localhost",
        "database": "test",
        "password": "root",
        "charset": "utf8"
    }
}

Basic usage

    procedural-mysql -c config.json # sets the configuration file
    procedural-mysql -w  # watch in config directory for changes
    procedural-mysql -w -g  # upload all functions in config directory and watch cahnges on it
    procedural-mysql -h # shows all commands to upload files

A basic mySQL function

CREATE FUNCTION test (number int) RETURNS int 
BEGIN
    return number;
END
0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago