[−][src]Function pgx::varlena::rust_byte_slice_to_bytea
pub fn rust_byte_slice_to_bytea(slice: &[u8]) -> PgBox<bytea>
Convert a Rust &[u8]]
into a Postgres bytea *
(which is really a varchar)
This allocates the returned Postgres bytea *
in CurrentMemoryContext
.