Socket
Socket
Sign inDemoInstall

@bot-whatsapp/database

Package Overview
Dependencies
71
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bot-whatsapp/database

Esto es el conector a mysql, pg, mongo


Version published
Weekly downloads
884
decreased by-6.16%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 23 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc