Class: PG::TextEncoder::Boolean

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

Overview

This is the encoder class for the PostgreSQL bool type.

Ruby value false is encoded as SQL FALSE value. Ruby value true is encoded as SQL TRUE value. Any other value is sent as it’s string representation.