Sha256: fb75b8cb002ef318d9429df4e0bcbaf9e9196ab9b20cc7914e5f4d06324b93bc

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 Bytes

Contents

module StaticRecord
  # Contains ActiveRecord-like query interface methods
  module QueryInterface
    # Contains SQL helpers
    module SqlHelpers
      private

      def to_sql
        build_query
      end

      def see_sql_of
        @only_sql = true
        self
      end

      def no_sql
        @only_sql = false
        self
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
static-record-1.2.1 lib/static_record/models/query_interface/sql_helpers.rb
static-record-1.2.0 lib/static_record/models/query_interface/sql_helpers.rb
static-record-1.1.0 lib/static_record/models/query_interface/sql_helpers.rb
static-record-1.0.1 lib/static_record/models/query_interface/sql_helpers.rb