aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/collectors/sql_string.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/arel/collectors/sql_string.rb b/lib/arel/collectors/sql_string.rb
new file mode 100644
index 0000000000..1b2ff21b18
--- /dev/null
+++ b/lib/arel/collectors/sql_string.rb
@@ -0,0 +1,26 @@
+module Arel
+ module Collectors
+ class SQLString
+ def initialize
+ @str = ''
+ end
+
+ def value
+ @str
+ end
+
+ def << str
+ @str << str
+ self
+ end
+
+ def start; self; end
+ def finish; self; end
+
+ def add_bind bind
+ self << bind
+ self
+ end
+ end
+ end
+end