This package has been deprecated

Author message:

deprecated

@faasjs/provider-sqlite
TypeScript icon, indicating that this package has built-in type declarations

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
})

/@faasjs/provider-sqlite/

    Package Sidebar

    Install

    npm i @faasjs/provider-sqlite

    Weekly Downloads

    5

    Version

    0.0.0-alpha.0

    License

    MIT

    Unpacked Size

    3.82 kB

    Total Files

    3

    Last publish

    Collaborators

    • zfben