-
Notifications
You must be signed in to change notification settings - Fork 5
Inline Support
Ke- edited this page Dec 1, 2013
·
1 revision
Datasource supports classic inlines in two ways.
Firstly, classic inline commands are supported — so substituting inline with dsinline will allow you to take advantage of connection pooling and faster host lookups:
dsinline(
-database = 'db',
-table ='table',
'this' = 'apple',
-search
) => {...}
Secondly, if you prefer to use inline for the database connection then you can still leverage the result handler to work with the results.
inline(...) => {
with row in result->rows do {
// do stuff with #row
}
}
Using ds
in either manner will lead to improvements — more so when combined. The degree of improvements depend the number of columns and rows you're working with and the response time of the data source.