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

Add catalog information #99

Merged
merged 13 commits into from
Feb 2, 2024
Merged

Add catalog information #99

merged 13 commits into from
Feb 2, 2024

Conversation

RasmusSkytte
Copy link
Contributor

@RasmusSkytte RasmusSkytte commented Feb 1, 2024

Intent

This PR expands our support for catalogs and does some improvements for get_schema().

This should bring us closer to fixing issue #94

Approach

  • Tests were added for get_schema()

  • When a schema cannot be determined, get_schema() returns NULL instead of NA
    This allows smoother incorporation with DBI::Id.

  • A new get_catalog() method is added.
    In most cases, catalog will be NULL, but for SQL Server, the database context is resolved.

  • id() is expanded to account for catalog in more cases:

    • id.character() now takes implied catalog
    • id.Id() now attempts to determine catalog for SQL server connections

Known issues

This PR also contains the code being merged in

Once merged, this PR will be rebased and opened.

Checklist

  • The PR passes all local unit tests
  • I have documented any new features introduced
  • If the PR adds a new feature, please add an entry in NEWS.md
  • A reviewer is assigned to this PR

@RasmusSkytte RasmusSkytte self-assigned this Feb 1, 2024
@RasmusSkytte RasmusSkytte added the enhancement New feature or request label Feb 1, 2024
@RasmusSkytte RasmusSkytte requested review from a team, kaare-gr and LasseEngboChr and removed request for a team February 1, 2024 14:14
@RasmusSkytte RasmusSkytte marked this pull request as ready for review February 1, 2024 14:14
R/id.R Outdated Show resolved Hide resolved
Copy link
Contributor

@LasseEngboChr LasseEngboChr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change requested

@RasmusSkytte RasmusSkytte merged commit dcfb406 into main Feb 2, 2024
24 checks passed
@RasmusSkytte RasmusSkytte deleted the feature/catalog_information branch February 2, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants