Sha256: 750a155f3d65ce9f1c7025cdc5a5120d0b67399fab43e4e52a1779189370dd98
Contents?: true
Size: 232 Bytes
Versions: 3
Compression:
Stored size: 232 Bytes
Contents
# -*- ruby -*- # frozen_string_literal: true module YSQL module TextEncoder class Date < SimpleEncoder def encode(value) value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : value end end end end # module PG
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yugabytedb-ysql-0.5 | lib/ysql/text_encoder/date.rb |
yugabytedb-ysql-0.4 | lib/ysql/text_encoder/date.rb |
yugabytedb-ysql-0.3 | lib/pg/text_encoder/date.rb |