Skip to content

Instantly share code, notes, and snippets.

@lopex
Created May 14, 2015 22:40
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