Sha256: 676f3f2d053c119bdee9d96f9e6ad9a6377d6704532fca8bd2d08f26d1340ec7

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

module Timescaledb
  class Database
    module Types
      # @param [String] interval The interval value
      # @return [String]
      def interval_to_sql(interval)
        "INTERVAL #{quote(interval)}"
      end

      # @param [String] boolean The boolean value
      # @return [String]
      def boolean_to_sql(boolean)
        quote(boolean ? 'TRUE' : 'FALSE')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timescaledb-0.2.7 lib/timescaledb/database/types.rb