npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

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'
  }
};

Keywords

install

npm i pagelang

Downloadsweekly downloads

0

version

0.1.1

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability