Sha256: 47d28b8e68d67bd506a72e63af30e17f003287b6c656b7cbb9eb0780db69a2b9

Contents?: true

Size: 796 Bytes

Versions: 7

Compression:

Stored size: 796 Bytes

Contents

module WLang
  class EncoderSet
    
    # Encoders for ruby
    module SQL
  
      # Default encoders  
      DEFAULT_ENCODERS = {"single-quoting" => :single_quoting}
  
      # Upcase encoding
      def self.single_quoting(src, options); src.gsub("'","\\\\'"); end
  
    end # module SQL
    
    # Encoders for ruby
    module SQL::Sybase
  
      # Default encoders  
      DEFAULT_ENCODERS = {"single-quoting" => :single_quoting}
  
      # Upcase encoding
      def self.single_quoting(src, options); src.gsub("'","''"); end
  
    end # module SQL::Sybase  
    
  end  
  class RuleSet
    
    # Defines rulset of the wlang/ruby dialect
    module SQL
    
        # Default mapping between tag symbols and methods
        DEFAULT_RULESET = {}
    
    end # module SQL
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wlang-0.10.2 lib/wlang/dialects/sql_dialect.rb
wlang-0.10.1 ./lib/wlang/dialects/sql_dialect.rb
wlang-0.10.0 lib/wlang/dialects/sql_dialect.rb
wlang-0.9.2 lib/wlang/dialects/sql_dialect.rb
wlang-0.8.5 lib/wlang/dialects/sql_dialect.rb
wlang-0.8.4 lib/wlang/dialects/sql_dialect.rb
wlang-0.9.1 lib/wlang/dialects/sql_dialect.rb