Sha256: f5947e0fa2fe82b1a60dc6f44f1bb00979aaf8f1bba277093c6df865775bbe1b
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require 'masking/config/target_columns/method/type/base' module Masking class Config class TargetColumns class Method module Type class Boolean < Base def call(_sql_value) boolean_format.to_s end private # NOTE: 11.1.1 Numeric Type Overview, chapter BOOL, BOOLEAN # https://dev.mysql.com/doc/refman/8.0/en/numeric-type-overview.html def boolean_format value ? 1 : 0 end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems