Skip to content

Encodes a string to a base64-encoded string.

func.to_base64(<str>)
func.to_base64('Hello')
┌────────────┐
│ 'SGVsbG8=' │
└────────────┘
TO_BASE64(<str>)
SELECT TO_BASE64('Hello');
┌──────────┐
│ SGVsbG8= │
└──────────┘