Closed volcan01010 closed 2 years ago
I have implemented this function for SQL Server. Due to the parameter handling there has been a little refactoring. The tests are passing locally. (I can't see any README updates in this PR.)
Maybe SQLite does have a concept of schemas. Or at least of two-part table names.
Judging by this, we should set the schema to main
if one isn't specified.
Maybe SQLite does have a concept of schemas. Or at least of two-part table names.
Yes, I was going to raise this as I saw "schemas" being used in an example. We need to work out how to use them dynamically as the format for schemas with pragmas is:
schema.pragma_name(...)
A tweak for the Oracle SQL query - we need to wrap the schema name in ^
, $
, otherwise the REGEX is too greedy and matches BGS_BGSPROD when I searched for just BGS.
SELECT * FROM all_tab_columns
WHERE LOWER(table_name) = LOWER('DIC_SEN_SENSOR')
AND REGEXP_LIKE(LOWER(owner), COALESCE(LOWER('^' || 'BGS' || '$'), '.*'))
Over to you @volcan01010
This is nearly ready to merge, but I can't get a connection to MS SQL Server to work for the integration tests. Once we have that fixed and confirm that tests pass there, we can release.
I've rerun the whole test suite including MS SQL Server and all tests pass.
Description
This merge request adds a
describe_columns
function that can return column metadata.Closes #127
To test