Code Monkey home page Code Monkey logo

cleaner's Introduction

Xolv.io Cleaner

This package cleans your database for testing purposes.

Installation

meteor add xolvio:cleaner

Usage

resetDatabase only resets your database when it is executed inside a debugOnly environment.

You can clear your database with resetDatabase(options, callback). It works on both the client and the server.

import { resetDatabase } from 'meteor/xolvio:cleaner';

// delete all collections with optional callback
resetDatabase(null, callback);

Provide specific database instance

// delete all collections except myCollection with optional callback
resetDatabase({db: yourDatabaseInstance}, callback);

Don't reset certain collection

// delete all collections except myCollection with optional callback
resetDatabase({excludedCollections: ['myCollection']}, callback);

About Xolv.io

We help you on your journey to delivering higher quality software, faster. We offer:

  • Software development services (including but not limited to Meteor development)
  • Modernization services
  • Training
  • SaaS products that allow you to up your own game

Visit Xolv.io to find out more about what we do.

cleaner's People

Contributors

samhatoum avatar sanjosolutions avatar sanjo avatar didericis avatar fkint avatar cwohlman avatar simonsimcity avatar lgandecki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.