xk6-sql v1.0.4
is here 🎉!
This release includes:
New features
- Timeout support in
execWithTimeout()
andqueryWithTimeout()
functions: Theexec()
andquery()
functions wait for an unlimited amount of time for the result. This can lead to the test stalling, for example, in the event of a network problem. The API has been extended with timeout-handling counterparts of these functions:execWithTimeout()
andqueryWithTimeout()
. The first parameter is the timeout. The timeout parameter is a duration string, a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as300ms
,-1.5h
or2h45m
. Valid time units arens
,us
(orµs
),ms
,s
,m
,h
.
Bugfixes
- Use VU Context(): VU Context() is now used in
query()
andexec()
functions instead of background context. Using background context is a potential problem if SQL operations are still running after the VU context is invalidated.