io.kestra.plugin.couchbase.Query Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-couchbase Show documentation
Show all versions of plugin-couchbase Show documentation
Integrate Couchbase NoSQL database operations into your Kestra flows for efficient data management, real-time analytics, and improved performance across your data-driven applications.
The newest version!
package io.kestra.plugin.couchbase;
import com.couchbase.client.java.Cluster;
import com.couchbase.client.java.codec.TypeRef;
import com.couchbase.client.java.json.JsonArray;
import com.couchbase.client.java.json.JsonObject;
import com.couchbase.client.java.query.QueryOptions;
import com.couchbase.client.java.query.QueryResult;
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.models.tasks.RunnableTask;
import io.kestra.core.models.tasks.common.FetchType;
import io.kestra.core.runners.RunContext;
import io.kestra.core.serializers.FileSerde;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.*;
import java.net.URI;
import java.util.List;
import java.util.Map;
@SuperBuilder
@ToString
@EqualsAndHashCode
@Getter
@NoArgsConstructor
@Schema(
title = "Query a Couchbase database with N1QL."
)
@Plugin(
examples = {
@Example(
title = "Send a N1QL query to a Couchbase database.",
code = {
"connectionString: couchbase://localhost",
"username: couchbase_user",
"password: couchbase_passwd",
"query: SELECT * FROM `COUCHBASE_BUCKET`(.`COUCHBASE_SCOPE`.`COUCHBASE_COLLECTION`)",
"fetchType: FETCH"
}
),
}
)
public class Query extends CouchbaseConnection implements RunnableTask, QueryInterface {
private static final TypeRef
© 2015 - 2025 Weber Informatics LLC | Privacy Policy