Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

This package has been deprecated

Author message:

deprecated

@faasjs/provider-sqlite

0.0.0-alpha.0 • Public • Published

@faasjs/provider-sqlite

Sqlite 适配

License: MIT Build Status Coverage Status NPM Stable Version NPM Beta Version

接口文档

How to use?

  1. Add npm to package.json: yarn add @faasjs/provider-sqlite@beta;
  2. Config connection info in providers folder, support host, user, password and database;
  3. Use it in flow:
new Flow({
  resources: {
    sqlite: {}
  }
}, async function(){
  const results = await this.sqlite.query('SELECT user from id = ?', ['1']);
  console.log(results[0].id); // => 1
})

Keywords

none

Install

npm i @faasjs/provider-sqlite

DownloadsWeekly Downloads

2

Version

0.0.0-alpha.0

License

MIT

Unpacked Size

3.82 kB

Total Files

3

Last publish

Collaborators

  • avatar