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
1Connection database.
1Connection host.
1Connection namespace.
1SurrealQL query to execute.
60 > Connection timeout. Default is 60 seconds.
STORESTOREFETCHFETCH_ONENONEThe 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.
{}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.
Plaintext authentication password.
8000 > Connection port. Default value is 8000.
falseSpecify whether to use TLS for connection. Default is false.
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.
uriThe URI of the stored result in Kestra's internal storage.
Only populated if using fetchType: STORE.