Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support virtual listing for SQL server. #2311

Merged
merged 4 commits into from
Dec 28, 2023
Merged

Conversation

vrongmeal
Copy link
Contributor

-- List schemas
select * from list_schemas(external_db);

-- List tables in schema
select * from list_tables(external_db, dbo);

-- List columns for a given table
select * from list_columns(external_db, dbo, abc);

```sql
SELECT * FROM read_sqlserver(
    -- Connection string
    'server=tcp:localhost,1433;user=SA;password=bigStrong@1Pwd;TrustServerCertificate=true',
    -- Schema name
    'dbo',
    -- Table name
    'my_table'
);
```

Signed-off-by: Vaibhav <vrongmeal@gmail.com>
```sql
-- List schemas
select * from list_schemas(external_db);

-- List tables in schema
select * from list_tables(external_db, dbo);

-- List columns for a given table
select * from list_columns(external_db, dbo, abc);
```

Signed-off-by: Vaibhav <vrongmeal@gmail.com>
@vrongmeal
Copy link
Contributor Author

Thinking of merging this in as well. Quite a simple change.

@vrongmeal vrongmeal mentioned this pull request Dec 27, 2023
4 tasks
@vrongmeal vrongmeal enabled auto-merge (squash) December 28, 2023 07:06
@vrongmeal vrongmeal merged commit ccb6fcf into main Dec 28, 2023
12 checks passed
@vrongmeal vrongmeal deleted the vrongmeal/read_sqlserver branch December 28, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants