Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bot-whatsapp/database

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bot-whatsapp/database

Esto es el conector a mysql, pg, mongo

  • 0.1.38
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by38.88%
Maintainers
1
Weekly downloads
 
Created
Source

🚀 Package (@bot-whatsapp/database)

Este package tiene como reponsabilidad proveer de diferentes adaptadores para la capa de datos. La idea es brindar multiples opciones como un adaptador de MySQL, Mongo, entre otros.

Ejemplo de como se implementaria:

const MongoAdapter = require('@bot-whatsapp/database/mongo')
/// o
const MySQLAdapter = require('@bot-whatsapp/database/mysql')

const main = async () => {

    const adapterDB = new MongoAdapter()
    const adapterFlow = createFlow([flujoBot])
    const adapterProvider = createProvider(WebWhatsappProvider)

    createBot({
        flow: adapterFlow,
        provider: adapterProvider,
        database: adapterDB,
    })
}
CTX
 {
    ref: 'ans_7d9981e5-5019-422c-a19a-565cbb021391',
    keyword: 'ans_cfdad31b-ff6d-475f-873a-4ed6f8a79a43',
    answer: 'Esperando respuesta...',
    options: {
      media: null,
      buttons: [],
      capture: true,
      child: null,
      nested: [Array],
      keyword: {},
      callback: true
    },
    refSerialize: '81f18f563fd26a6c6d12c62aed98095f',
    from: 'NUMERO_PERSONA_QUE_ESCRIBE'
  }
Video

Video explicando como debes de agregar nuevos adaptadores Video


Comunidad

Forma parte de este proyecto.

FAQs

Package last updated on 23 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc