Replies: 1 comment
-
This isn't currently possible and it is not a feature I'm interested in adding. Users who only need a subset of the core extensions should copy the code they need. In your case, that would be: class String
def lit(*args)
args.empty? ? Sequel::LiteralString.new(self) : Sequel::SQL::PlaceholderLiteralString.new(self, args)
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For me, the most used method from
Sequel
module isSequel::lit
. I appreciate the rich DSL provided by the Sequel gem, but most of the time, if I need to write something more complex, I prefer to use shortSequel.lit('...')
snippets.Recently I learned about core_extensions, but I only care about the single
'...'.lit
extension.Is it possible to load only
String
extensions? If not, can we make that happen?Beta Was this translation helpful? Give feedback.
All reactions