Bytes Type

type
bytes

A sequence of bytes.

Bytes cannot be cast into any other type. They represent raw data.

There’s a special byte literal:

Copy
db> 
SELECT b'Hello, world';
{b'Hello, world'}
Copy
db> 
SELECT b'Hello,\x20world\x01';
{b'Hello, world\x01'}

There are also some generic functions that can operate on bytes:

Copy
db> 
SELECT contains(b'qwerty', b'42');
{false}
Light
Dark
System