pagelang

0.1.1 • Public • Published

Pagelang

A Brainfuck-like Query Language for MySQL.

How to use

Pagelang provides a CLI tool, pager.

To SELECT * from table LIMIT 10, 5;

$ pager -t table -e "}}}}}}}}}})))))v"

To UPDATE table t1 JOIN (SELECT * from table LIMIT 3, 4) t2 ON t1.id = t2.id set t1.value = 100;

$ pager -t table -e "}}}))))@value:100@"

Option

You can pass options in initializing Pagelang like:

var pager = new Pager({
  db: {
    host: 'localhost',
    user: 'foo',
    password: 'bar',
    database: 'my_db'  
  }
});

By default, Pagelang uses options below:

{
  db: {
    host: 'localhost',
    user: 'root',
    password: '',
    database: 'pagelang'
  }
};

Readme

Keywords

Package Sidebar

Install

npm i pagelang

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • fand