snowflake_odbc_adapter 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 313f9c15e1c7e0d04158db6d11d0a54a9f60a9bc4392583138cfe12e4a118dfd
4
+ data.tar.gz: 9260b3c765f9bba72445f1882f4ff85f0db205d2568dbf4f1ffc37aacf21ec7b
5
+ SHA512:
6
+ metadata.gz: 6960fb52101ecce2578b3285e49fba4fc930cc084dd92695946265e4dd7d30a1fcdbd50388bbefce613a98038680dd7f1a01dc481c9b37518795d1bff81c7875
7
+ data.tar.gz: a35de4db92948d2557433d80b08a9af78e62557645b996fc2da9acecab4de7ef7ddcbe6d82efd8a15fbcfc412e144cb2f5ab25319733f40872e10bdb7fc25883
data/.rake_tasks~ ADDED
@@ -0,0 +1,16 @@
1
+ build
2
+ build:checksum
3
+ clean
4
+ clobber
5
+ default
6
+ install
7
+ install:local
8
+ release[remote]
9
+ release:guard_clean
10
+ release:rubygem_push
11
+ release:source_control_push[remote]
12
+ rubocop
13
+ rubocop:auto_correct
14
+ rubocop:autocorrect
15
+ rubocop:autocorrect_all
16
+ test
data/.rubocop.yml ADDED
@@ -0,0 +1,229 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-minitest
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
+
10
+ AllCops:
11
+ SuggestExtensions: false
12
+ DisabledByDefault: true
13
+ Exclude:
14
+ - "data/**/*"
15
+
16
+ # Align `when` with `end`.
17
+ Layout/CaseIndentation:
18
+ Enabled: true
19
+ EnforcedStyle: end
20
+
21
+ # Align comments with method definitions.
22
+ Layout/CommentIndentation:
23
+ Enabled: true
24
+
25
+ Layout/ElseAlignment:
26
+ Enabled: true
27
+
28
+ Layout/EmptyLineAfterMagicComment:
29
+ Enabled: true
30
+
31
+ Layout/EmptyLinesAroundBlockBody:
32
+ Enabled: true
33
+
34
+ # In a regular class definition, no empty lines around the body.
35
+ Layout/EmptyLinesAroundClassBody:
36
+ Enabled: true
37
+
38
+ # In a regular method definition, no empty lines around the body.
39
+ Layout/EmptyLinesAroundMethodBody:
40
+ Enabled: true
41
+
42
+ # In a regular module definition, no empty lines around the body.
43
+ Layout/EmptyLinesAroundModuleBody:
44
+ Enabled: true
45
+
46
+ # Align `end` with the matching keyword or starting expression except for
47
+ # assignments, where it should be aligned with the LHS.
48
+ Layout/EndAlignment:
49
+ Enabled: true
50
+ EnforcedStyleAlignWith: variable
51
+ AutoCorrect: true
52
+
53
+ # Method definitions after `private` or `protected` isolated calls need one
54
+ # extra level of indentation.
55
+ #
56
+ # We break this rule in context, though, e.g. for private-only concerns,
57
+ # so we leave it disabled.
58
+ Layout/IndentationConsistency:
59
+ Enabled: false
60
+ EnforcedStyle: indented_internal_methods
61
+
62
+ # Detect hard tabs, no hard tabs.
63
+ Layout/IndentationStyle:
64
+ Enabled: true
65
+
66
+ # Two spaces, no tabs (for indentation).
67
+ #
68
+ # Doesn't behave properly with private-only concerns, so it's disabled.
69
+ Layout/IndentationWidth:
70
+ Enabled: false
71
+
72
+ Layout/LeadingCommentSpace:
73
+ Enabled: true
74
+
75
+ Layout/SpaceAfterColon:
76
+ Enabled: true
77
+
78
+ Layout/SpaceAfterComma:
79
+ Enabled: true
80
+
81
+ Layout/SpaceAroundEqualsInParameterDefault:
82
+ Enabled: true
83
+
84
+ Layout/SpaceAroundKeyword:
85
+ Enabled: true
86
+
87
+ # Use `foo {}` not `foo{}`.
88
+ Layout/SpaceBeforeBlockBraces:
89
+ Enabled: true
90
+
91
+ Layout/SpaceBeforeComma:
92
+ Enabled: true
93
+
94
+ Layout/SpaceBeforeFirstArg:
95
+ Enabled: true
96
+
97
+ # Use `->(x, y) { x + y }` not `-> (x, y) { x + y }`
98
+ Layout/SpaceInLambdaLiteral:
99
+ Enabled: true
100
+
101
+ # Use `[ a, [ b, c ] ]` not `[a, [b, c]]`
102
+ # Use `[]` not `[ ]`
103
+ Layout/SpaceInsideArrayLiteralBrackets:
104
+ Enabled: true
105
+ EnforcedStyle: space
106
+ EnforcedStyleForEmptyBrackets: no_space
107
+
108
+ # Use `%w[ a b ]` not `%w[ a b ]`.
109
+ Layout/SpaceInsideArrayPercentLiteral:
110
+ Enabled: true
111
+
112
+ # Use `foo { bar }` not `foo {bar}`.
113
+ # Use `foo { }` not `foo {}`.
114
+ Layout/SpaceInsideBlockBraces:
115
+ Enabled: true
116
+ EnforcedStyleForEmptyBraces: space
117
+
118
+ # Use `{ a: 1 }` not `{a:1}`.
119
+ # Use `{}` not `{ }`.
120
+ Layout/SpaceInsideHashLiteralBraces:
121
+ Enabled: true
122
+ EnforcedStyle: space
123
+ EnforcedStyleForEmptyBraces: no_space
124
+
125
+ # Use `foo(bar)` not `foo( bar )`
126
+ Layout/SpaceInsideParens:
127
+ Enabled: true
128
+
129
+ # Requiring a space is not yet supported as of 0.59.2
130
+ # Use `%w[ foo ]` not `%w[foo]`
131
+ Layout/SpaceInsidePercentLiteralDelimiters:
132
+ Enabled: false
133
+ #EnforcedStyle: space
134
+
135
+ # Use `hash[:key]` not `hash[ :key ]`
136
+ Layout/SpaceInsideReferenceBrackets:
137
+ Enabled: true
138
+
139
+ # Blank lines should not have any spaces.
140
+ Layout/TrailingEmptyLines:
141
+ Enabled: true
142
+
143
+ # No trailing whitespace.
144
+ Layout/TrailingWhitespace:
145
+ Enabled: true
146
+
147
+ Lint/RedundantStringCoercion:
148
+ Enabled: true
149
+
150
+ # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
151
+ Lint/RequireParentheses:
152
+ Enabled: true
153
+
154
+ Lint/UriEscapeUnescape:
155
+ Enabled: true
156
+
157
+ Performance:
158
+ Exclude:
159
+ - "test/**/*"
160
+
161
+ Performance/FlatMap:
162
+ Enabled: true
163
+
164
+ Performance/UnfreezeString:
165
+ Enabled: true
166
+
167
+ # We generally prefer &&/|| but like low-precedence and/or in context
168
+ Style/AndOr:
169
+ Enabled: false
170
+
171
+ # Prefer Foo.method over Foo::method
172
+ Style/ColonMethodCall:
173
+ Enabled: true
174
+
175
+ Style/DefWithParentheses:
176
+ Enabled: true
177
+
178
+ # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
179
+ Style/HashSyntax:
180
+ Enabled: true
181
+ EnforcedShorthandSyntax: either
182
+
183
+ # Defining a method with parameters needs parentheses.
184
+ Style/MethodDefParentheses:
185
+ Enabled: true
186
+
187
+ Style/ParenthesesAroundCondition:
188
+ Enabled: true
189
+
190
+ Style/PercentLiteralDelimiters:
191
+ Enabled: true
192
+ PreferredDelimiters:
193
+ default: "()"
194
+ "%i": "[]"
195
+ "%I": "[]"
196
+ "%r": "{}"
197
+ "%w": "[]"
198
+ "%W": "[]"
199
+
200
+ # Use quotes for string literals when they are enough.
201
+ Style/RedundantPercentQ:
202
+ Enabled: false
203
+
204
+ Style/RedundantReturn:
205
+ Enabled: true
206
+ AllowMultipleReturnValues: true
207
+
208
+ Style/Semicolon:
209
+ Enabled: true
210
+ AllowAsExpressionSeparator: true
211
+
212
+ Style/StabbyLambdaParentheses:
213
+ Enabled: true
214
+
215
+ # Use `"foo"` not `'foo'` unless escaping is required
216
+ Style/StringLiterals:
217
+ Enabled: true
218
+ EnforcedStyle: double_quotes
219
+ Include:
220
+ - "bin/**/*"
221
+ - "lib/**/*"
222
+ - "test/**/*"
223
+ - "Gemfile"
224
+
225
+ Style/TrailingCommaInArrayLiteral:
226
+ Enabled: true
227
+
228
+ Style/TrailingCommaInHashLiteral:
229
+ Enabled: true
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [7.2.0] - 2024-08-22
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at guillaume.gillet@singlespot.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in snowflake_odbc_adapter.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "rubocop", "~> 1.21"
13
+ gem "rubocop-rails"
14
+ gem "rubocop-performance"
15
+ gem "rubocop-minitest"
16
+
17
+ gem "ruby-odbc", git: "https://github.com/vhermecz/ruby-odbc.git", branch: "main"
18
+
19
+ group :test do
20
+ gem "debug"
21
+ gem "simplecov"
22
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,128 @@
1
+ GIT
2
+ remote: https://github.com/vhermecz/ruby-odbc.git
3
+ revision: 0423cec482ef837af710ff291aa45bbc53c398e5
4
+ branch: main
5
+ specs:
6
+ ruby-odbc (0.999991)
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ snowflake_odbc_adapter (7.2.0)
12
+ activerecord (>= 7.2)
13
+ ruby-odbc
14
+
15
+ GEM
16
+ remote: https://rubygems.org/
17
+ specs:
18
+ activemodel (7.2.1)
19
+ activesupport (= 7.2.1)
20
+ activerecord (7.2.1)
21
+ activemodel (= 7.2.1)
22
+ activesupport (= 7.2.1)
23
+ timeout (>= 0.4.0)
24
+ activesupport (7.2.1)
25
+ base64
26
+ bigdecimal
27
+ concurrent-ruby (~> 1.0, >= 1.3.1)
28
+ connection_pool (>= 2.2.5)
29
+ drb
30
+ i18n (>= 1.6, < 2)
31
+ logger (>= 1.4.2)
32
+ minitest (>= 5.1)
33
+ securerandom (>= 0.3)
34
+ tzinfo (~> 2.0, >= 2.0.5)
35
+ ast (2.4.2)
36
+ base64 (0.2.0)
37
+ bigdecimal (3.1.8)
38
+ concurrent-ruby (1.3.4)
39
+ connection_pool (2.4.1)
40
+ debug (1.9.2)
41
+ irb (~> 1.10)
42
+ reline (>= 0.3.8)
43
+ docile (1.4.1)
44
+ drb (2.2.1)
45
+ i18n (1.14.5)
46
+ concurrent-ruby (~> 1.0)
47
+ io-console (0.7.2)
48
+ irb (1.14.0)
49
+ rdoc (>= 4.0.0)
50
+ reline (>= 0.4.2)
51
+ json (2.7.2)
52
+ language_server-protocol (3.17.0.3)
53
+ logger (1.6.0)
54
+ minitest (5.25.1)
55
+ parallel (1.26.3)
56
+ parser (3.3.4.2)
57
+ ast (~> 2.4.1)
58
+ racc
59
+ psych (5.1.2)
60
+ stringio
61
+ racc (1.8.1)
62
+ rack (3.1.7)
63
+ rainbow (3.1.1)
64
+ rake (13.2.1)
65
+ rdoc (6.7.0)
66
+ psych (>= 4.0.0)
67
+ regexp_parser (2.9.2)
68
+ reline (0.5.9)
69
+ io-console (~> 0.5)
70
+ rexml (3.3.6)
71
+ strscan
72
+ rubocop (1.65.1)
73
+ json (~> 2.3)
74
+ language_server-protocol (>= 3.17.0)
75
+ parallel (~> 1.10)
76
+ parser (>= 3.3.0.2)
77
+ rainbow (>= 2.2.2, < 4.0)
78
+ regexp_parser (>= 2.4, < 3.0)
79
+ rexml (>= 3.2.5, < 4.0)
80
+ rubocop-ast (>= 1.31.1, < 2.0)
81
+ ruby-progressbar (~> 1.7)
82
+ unicode-display_width (>= 2.4.0, < 3.0)
83
+ rubocop-ast (1.32.1)
84
+ parser (>= 3.3.1.0)
85
+ rubocop-minitest (0.36.0)
86
+ rubocop (>= 1.61, < 2.0)
87
+ rubocop-ast (>= 1.31.1, < 2.0)
88
+ rubocop-performance (1.21.1)
89
+ rubocop (>= 1.48.1, < 2.0)
90
+ rubocop-ast (>= 1.31.1, < 2.0)
91
+ rubocop-rails (2.26.1)
92
+ activesupport (>= 4.2.0)
93
+ rack (>= 1.1)
94
+ rubocop (>= 1.52.0, < 2.0)
95
+ rubocop-ast (>= 1.31.1, < 2.0)
96
+ ruby-progressbar (1.13.0)
97
+ securerandom (0.3.1)
98
+ simplecov (0.22.0)
99
+ docile (~> 1.1)
100
+ simplecov-html (~> 0.11)
101
+ simplecov_json_formatter (~> 0.1)
102
+ simplecov-html (0.12.3)
103
+ simplecov_json_formatter (0.1.4)
104
+ stringio (3.1.1)
105
+ strscan (3.1.0)
106
+ timeout (0.4.1)
107
+ tzinfo (2.0.6)
108
+ concurrent-ruby (~> 1.0)
109
+ unicode-display_width (2.5.0)
110
+
111
+ PLATFORMS
112
+ ruby
113
+ x86_64-linux
114
+
115
+ DEPENDENCIES
116
+ debug
117
+ minitest (~> 5.0)
118
+ rake (~> 13.0)
119
+ rubocop (~> 1.21)
120
+ rubocop-minitest
121
+ rubocop-performance
122
+ rubocop-rails
123
+ ruby-odbc!
124
+ simplecov
125
+ snowflake_odbc_adapter!
126
+
127
+ BUNDLED WITH
128
+ 2.5.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Guillaume GILLET
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # SnowflakeOdbcAdapter
2
+
3
+ Based on the [odbc_adpter](https://github.com/localytics/odbc_adapter) that seems to not been maintain since rails 5.1. And despite the [fork](https://github.com/singlespot/odbc_adapter) we made to follow the rails evolution.
4
+ We decide to create a new gem, dedicated to connect with the Snowflake odbc driver.
5
+
6
+ This Gem is in a very early development
7
+
8
+ ## Installation
9
+
10
+ In your Gemfile add the two dependencies
11
+
12
+ ```
13
+ gem 'snowflake_odbc_adapter'
14
+ gem 'ruby-odbc', :git => 'https://github.com/vhermecz/ruby-odbc.git', branch: 'main'
15
+ ```
16
+
17
+ We had use a fork of *ruby-odbc* as the original gem is not maintain anymore and so, no compatible with ruby 3 or above
18
+
19
+ ## Usage
20
+
21
+ Right now the connection only work using a connection string
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/snowflake_odbc_adapter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/snowflake_odbc_adapter/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the SnowflakeOdbcAdapter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/snowflake_odbc_adapter/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
@@ -0,0 +1,22 @@
1
+ module ActiveRecord
2
+ module ConnectionAdapters
3
+ module SnowflakeOdbc
4
+ class Column < ConnectionAdapters::Column # :nodoc:
5
+ def initialize(name, default, sql_type_metadata = nil, null = true, default_function = nil, collation: nil,
6
+ comment: nil, **options)
7
+ super(name, _default(default), sql_type_metadata, null, default_function,
8
+ collation: collation,
9
+ comment: comment, **options)
10
+ end
11
+
12
+ private
13
+
14
+ def _default(default)
15
+ return nil if default.empty?
16
+
17
+ default
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end