Neptunian Parity Mnemonic

    couchbase-mass-delete

    1.0.0 • Public • Published

    Couchbase Mass Delete

    Scalable way to mass delete Couchbase documents returned by a given query.

    Example

    var couchbase = require("couchbase");
    var massDelete = require("couchbase-mass-delete");
     
    var url = "http://couchbase.example.com:8091";
    var bucketName = "default";
    var designDoc = "docs";
    var view = "by_id";
     
    var cluster = new couchbase.Cluster(url);
     
    var bucket = cluster.openBucket(bucketName);
     
    var ViewQuery = couchbase.ViewQuery;
    var query = ViewQuery.from(designDoc, view);
     
    // find all 26 character sessions stored in couchbase that start with "sf2_".
    query.range("sf2_", "sf2_zzzzzzzzzzzzzzzzzzzzzzzzzz", true);

    From the command line run:

    $ npm install couchbase-mass-delete
    $ npm start

    License

    Licensed under either of

    Contribution

    Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

    Install

    npm i couchbase-mass-delete

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT/Apache-2.0

    Last publish

    Collaborators

    • hjr3