Queries
Configure global query defaults for the BoxLang runtime
Configuration Structure
// Query Default Options
"queries": {
// The default timeout for queries in seconds. 0 means no timeout.
// This can be overridden per query.
"timeout": 0,
// The default return type for queries.
// Valid values: "query", "array", "struct". Overridable per query.
"returnType": "query",
// Number of rows to fetch from the database at once.
// Defaults to all rows (0). Overridable per query.
"fetchSize": 0,
// Maximum number of rows to return. Defaults to all rows (0).
// Overridable per query.
"maxRows": 0,
// The default named cache to use for query caching.
// This cache must be defined in the "caches" section of this config file.
"cacheProvider": "default"
}Configuration Properties
timeout
timeoutProperty
Value
returnType
returnTypeProperty
Value
fetchSize
fetchSizeProperty
Value
maxRows
maxRowsProperty
Value
cacheProvider
cacheProviderProperty
Value
Per-Query Overrides
Application-Level Defaults
Query Transformers
See Also
QueriesDatasourcesCachesLast updated
Was this helpful?
