Skip to content

Instantly share code, notes, and snippets.

@lopex
Created May 14, 2015 22:40
Show Gist options
  • Save lopex/0258ca12841791b897d7 to your computer and use it in GitHub Desktop.
Save lopex/0258ca12841791b897d7 to your computer and use it in GitHub Desktop.
class Sequel::JDBC::Database
def metadata_schema_and_table(table, opts)
im = input_identifier_meth(opts[:dataset])
schema, table = schema_and_table(table)
schema ||= default_schema
schema ||= opts[:schema]
schema = im.call(schema) if schema
table = im.call(table)
[schema, table]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment