Postgres module

source_offset_of

procedure · 1 overloadsince 0.27.0Source

The offset in the source of a byte of the rewritten statement. Inside a replaced % it is that %.

source_offset_of :: (rewrite: *Rewrite, rewritten_offset: s64) -> s64

The offset in the source of a byte of the rewritten statement. Inside a replaced % it is that %.

Parameters

rewrite: *Rewrite
the result of rewrite_placeholders.
rewritten_offset: s64
a byte offset in rewrite.sql.

Returns

s64

See also