How to use resolve-readmodel-mysql - 1 common examples

To help you get started, we’ve selected a few resolve-readmodel-mysql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reimagined / resolve / tests / read-models-transactional / worker.js View on Github external
void (async () => {
  try {
    let adapter
    switch (process.env.ADAPTER) {
      case 'memory':
        adapter = createMemoryAdapter({})
      case 'mysql':
        adapter = createMySQLAdapter({
          user: process.env.MYSQL_USER,
          password: process.env.MYSQL_PASSWORD,
          database: process.env.MYSQL_DATABASE,
          host: process.env.MYSQL_HOST,
          port: process.env.MYSQL_PORT
      case 'mongo':
        adapter = createMongoDBAdapter({
          url: process.env.MONGO_URL
        throw new Error(
          `Incorrect process.env.ADAPTER = ${process.env.ADAPTER}`


An adapter the resolve-query uses to store the read model state in MySQL

Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular resolve-readmodel-mysql functions