All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lordofthejars.nosqlunit.couchbase.DefaultCouchbaseInsertionStrategy Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.lordofthejars.nosqlunit.couchbase;

import java.io.InputStream;

public class DefaultCouchbaseInsertionStrategy implements com.lordofthejars.nosqlunit.core.InsertionStrategy {

    @Override
    public void insert(final CouchBaseClientCallback connection, final InputStream dataset) throws Throwable {
        final DataLoader dataLoader = new DataLoader(connection.couchBaseClient());
        insertDocuments(dataLoader, dataset);
    }

    private void insertDocuments(final DataLoader dataLoader, final InputStream dataScript) {
        dataLoader.load(dataScript);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy