Query
Query a SurrealDB database with SurrealQL.
type: "io.kestra.plugin.surrealdb.Query"
Send a SurrealQL query to a SurrealDB database.
id: surrealdb_query
namespace: company.team
tasks:
- id: select
type: io.kestra.plugin.surrealdb.Query
useTls: true
host: localhost
port: 8000
username: surreal_user
password: surreal_passwd
database: surreal_db
namespace: surreal_namespace
query: SELECT * FROM SURREAL_TABLE
fetchType: STORE
YES
1
Connection database.
YES
1
Connection host.
YES
1
Connection namespace.
YES
1
SurrealQL query to execute.
NO
NO
60
>
Connection timeout. Default is 60
seconds.
YES
STORE
STORE
FETCH
FETCH_ONE
NONE
The way you want to store data.
FETCH_ONE - output the first row. FETCH - output all rows as output variable. STORE - store all rows to a file. NONE - do nothing.
YES
{}
Query parameters, can be named parameters.
See SurrealDB documentation about SurrealQL Prepared Statements for query syntax.This should be supplied with a parameter map using named parameters.
YES
Plaintext authentication password.
NO
8000
>
Connection port. Default value is 8000
.
YES
false
Specify whether to use TLS for connection. Default is false
.
YES
Plaintext authentication username.
Map containing the first row of fetched data.
Only populated if using fetchType: FETCH_ONE
.
List containing the fetched data.
Only populated if using fetchType: FETCH
.
The number of rows fetched.
uri
The URI of the stored result in Kestra's internal storage.
Only populated if using fetchType: STORE
.