Class: PG::TextEncoder::Boolean

Inherits:
SimpleEncoder show all
Defined in:
ext/pg_text_encoder.c

Overview

This is the encoder class for the PostgreSQL bool type.

Ruby values false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off' and 'OFF' are encoded as SQL FALSE value. nil is sent as SQL NULL. Any other values are encoded as SQL TRUE .