acl-mssql
A mssql node_acl backend.
Last updated 5 years ago by psirenny .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install acl-mssql 
SYNC missed versions from official npm registry.

node acl mssql backend

A mssql node_acl backend. Refer to node mssql for connection options.

Installation

npm install acl-mssql --save

Usage

var Acl = require('acl');
var backend = require('acl-mssql');

var acl = new Acl(backend({
  user: '...',
  password: '...',
  server: 'localhost',
  database: '...'
}));

acl.allow('guest', 'blogs', 'view');
acl.allow('member', 'blogs', ['edit', 'view', 'delete']);

Options

In addition to mssql connection options:

prefix - Optional table prefix name.

table - Table name. Defaults to Acl.

bucketSize - Length of the bucket column. Defaults to 100.

keySize - Length of the key column. Defaults to 100.

valueSize - Length of the value column. Defaults to 100.

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

2 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 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 (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |