Skip to content
Ben Merritt edited this page Feb 19, 2017 · 1 revision

Types

phone_number

Represents a phone number

Internally, this type packs the digits of the phone number into a 64-bit integer, which limits the number of digits (after the country code) to 15. Theoretically, this should be enough to store any E.164 phone number.

Operators

phone_number supports the standard comparison and equality operators. Note that for now, these operators do not sort by lexicographical order. For stability, we'll need to fix that eventually.

Clone this wiki locally