db2_query 0.3.2 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- <% module_namespacing do -%>
4
- class <%= query_class_name %> < <%= "Db2Query::Base" -%>
5
- <% if @query_methods.empty? %>
6
- <%= indent("query :to_do, <<-SQL\n") %>
7
- <%= indent("SQL\n") %>
8
- <%= indent("def to_do_sql\n") %>
9
- <%= indent("end") %>
10
- <% end -%>
11
- <% @method_options.each do |key, val| -%>
12
- <% val.each_with_index do |option, index| -%>
13
- <% case key when 'defines' -%>
14
- <%= indent("def #{option}_sql\n") %>
15
- <%= indent("end") %>
16
- <% when 'queries' %>
17
- <%= indent("query :#{option}, <<-SQL\n") %>
18
- <%= indent("SQL") %>
19
- <% when 'lambdas' %>
20
- <%= indent("query :#{option}, -> args {\n") %>
21
- <%= indent("}") %>
22
- <% end -%>
23
- <% end -%>
24
- <% end -%>
25
- <%= 'end' -%>
26
- <% end %>
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- <% module_definitions_namespacing do -%>
4
- class <%= query_class_name %>Definitions < <%= "Db2Query::Definitions" %>
5
- <%= indent("def describe") -%>
6
- <% @query_methods.each do |method| %>
7
- <%= indent("query_definition :#{method} do |c|\n") %>
8
- <%= indent("end") %>
9
- <% end -%>
10
- <%= indent("end") %>
11
- <%= 'end' -%>
12
- <% end %>
@@ -1,9 +0,0 @@
1
- require "test_helper"
2
-
3
- <% module_namespacing do -%>
4
- class <%= query_class_name %>Test < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- <%= 'end' -%>
9
- <% end %>