clj-r2dbc.dialect.oracle
Optional Oracle-specific interceptor stages.
Addresses Oracle's LOB size limits: String and byte[] params exceeding a
threshold are automatically rewritten as Clob/Blob handles at :enter and
discarded at :leave and :error. Add oracle-lob-interceptor (or
oracle-lob-interceptor-with for custom thresholds) to :interceptors when
binding large text or binary parameters.
oracle-lob-interceptor
added in 0.1
Interceptor that rewrites oversized String/byte[] params into Oracle-friendly LOB handles.
Uses a default threshold of 32768 bytes. See oracle-lob-interceptor-with for
custom thresholds. Handles are discarded on both success and error paths.
oracle-lob-interceptor-with
added in 0.1
(oracle-lob-interceptor-with {:keys [lob-threshold-bytes], :or {lob-threshold-bytes 32768}})
Return an Oracle LOB interceptor with custom options.
Args:
opts - options map.
:lob-threshold-bytes - byte size above which String/byte[] params are
rewritten as Clob/Blob; default 32768.
Returns an interceptor map with :name, :enter, :leave, and :error keys.