New in this release
This pages covers new features of the platform.
Typed query builder
\OCP\DB\QueryBuilder\ITypedQueryBuilder was added in favour of \OCP\DB\QueryBuilder\IQueryBuilder and can be accessed through \OCP\IDBConnection::getTypedQueryBuilder.
This query builder has the benefit of accurately returning the selected columns in a query result, increasing type safety.
Todo
This linked page does not have coverage for the new API.
See Database access for details.
Expensive post migration repair steps
\OCP\Migration\IRepairStepExpensive was added and can be used to mark post-migration repair steps as expensive.
Expensive repair steps are non-critical repair steps that might take a long time to execute. Non-critical means that they are not required to directly be executed during migration to have a working instance, but they might be required to have a fully working instance later on.
Expensive repair steps are only executed when explicitly requested by the administrator.
See Repair steps for details.
Added APIs
There is a new TaskProcessing provider interface:
\OCP\TaskProcessing\ISynchronousOptionsAwareProvider. It takes a\OCP\TaskProcessing\SynchronousProviderOptionsoption object that contains includeWatermarks, preferStreaming and the callback to report intermediate output.
Changed APIs
The
\OCP\TaskProcessing\Taskclass now hasgetPreferStreamingandsetPreferStreamingmethods for indicating whether the provider should report the output progressively if it supports it.The TaskProcessing OCS API now also accepts the
preferStreamingflag when scheduling tasks.
Deprecated APIs
\OCP\TaskProcessing\ISynchronousWatermarkingProvideris now deprecated.\OCP\TaskProcessing\ISynchronousOptionsAwareProvidershould now be used instead.