// Path: src/main/java/com/github/rwitzel/couchrepository/api/CouchDbCrudRepository.java
// public interface CouchDbCrudRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {
// 
//     /**
//      * Queries the database with the given parameters.
//      * 
//      * @param viewParams the query parameters
//      * @param <R> the return type, depends on {@link ViewParams#getReturnType()}.
//      * @return Returns the result of the query. The type of the return value depends on {@link ViewParams#getReturnType()}.
//      */
//     <R> R find(ViewParams viewParams);
// 
// }


import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.Optional;
import org.yaml.snakeyaml.Yaml;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.rwitzel.couchrepository.api.CouchDbCrudRepository;
package com.github.rwitzel.couchrepository.support;




/**
 * Loads a document into the database. Useful for the initialization of a database.
 * 
 * @author rwitzel
 */
public class DocumentLoader {

    @SuppressWarnings("rawtypes")
// Path: src/main/java/com/github/rwitzel/couchrepository/api/CouchDbCrudRepository.java
// public interface CouchDbCrudRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {
// 
//     /**
//      * Queries the database with the given parameters.
//      * 
//      * @param viewParams the query parameters
//      * @param <R> the return type, depends on {@link ViewParams#getReturnType()}.
//      * @return Returns the result of the query. The type of the return value depends on {@link ViewParams#getReturnType()}.
//      */
//     <R> R find(ViewParams viewParams);
// 
// }


// Path: src/main/java/com/github/rwitzel/couchrepository/support/DocumentLoader.java
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.Optional;
import org.yaml.snakeyaml.Yaml;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.rwitzel.couchrepository.api.CouchDbCrudRepository;

package com.github.rwitzel.couchrepository.support;




/**
 * Loads a document into the database. Useful for the initialization of a database.
 * 
 * @author rwitzel
 */
public class DocumentLoader {

    @SuppressWarnings("rawtypes")
    private CouchDbCrudRepository<Map, String> repository;