acl-knex-mysql
A Knex.js backend for node_acl base on https://github.com/christophertrudel/node_acl_knex support MySql
Last updated 2 years ago by kongxiaojun .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install acl-knex-mysql 
SYNC missed versions from official npm registry.

Node Acl KnexBackend Support MySql

A Knex.js backend for node_acl base on node_acl_knex support MySql

Knex is a query builder for PostgreSQL, MySQL and SQLite3 in Node, The Knex backend is to be used as an adapter for OptimalBits/node_acl.

##Features & Documentation Please note that this library currently supports Mysql.

Please see OptimalBits/node_acl.

##Installation

Using npm:

npm install acl
npm install knex
npm install mysql

npm install acl-knex-mysql

#Quick Start

	Acl = require('acl');
	AclKnexBackend = require('acl-knex');
	knex = require('knex');
	let acl_knex = new AclKnexBackend(knex, 'acl_');

	var db = knex({
		client: 'mysql',
		connection: {
			host: '127.0.0.1',
			port: 3306,
			user: 'admin',
			database: 'test'
		}
	});

	var acl = new Acl(acl_knex);
	//setup
	acl_knex.setup(function (err, db) {
		...
	});
	

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

3 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |