node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

pagelang

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