How to use strapi-database - 1 common examples

To help you get started, we’ve selected a few strapi-database 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 strapi / strapi / packages / strapi / lib / Strapi.js View on Github external
// overwrite plugins with extensions overwrites
    extensions.overwrites.forEach(({ path, mod }) => {
      _.assign(_.get(this.plugins, path), mod);
    });

    // Populate AST with configurations.

    await bootstrap(this);

    // Usage.
    await utils.usage(this.config);

    // Init core store
    initCoreStore(this);

    this.db = createDatabaseManager(this);
    await this.db.initialize();

    // Initialize hooks and middlewares.
    await initializeMiddlewares.call(this);
    await initializeHooks.call(this);
  }

strapi-database

Strapi's database layer

SEE LICENSE IN LICENSE
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis

Popular strapi-database functions

Similar packages