Skip to content

Minimal postgresql support in dbUtils - #64

Merged
dnadeau-lanl merged 4 commits into
spacepy:masterfrom
jtniehof:postgres_dbutils
Jan 22, 2021
Merged

dnadeau-lanl merged 4 commits into
spacepy:masterfrom
jtniehof:postgres_dbutils

Conversation

@jtniehof

Copy link
Copy Markdown
Member

This is a start on #14 but by no means complete. It's an attempt to get us towards working PostgreSQL without having everything perfectly in order. In particular, it still uses the magic environment variables rather than completely generalizing the database URL.

This PR gets as far as being able to create the tables in a PostgreSQL database and start addFromConfig. Unfortunately there are some aspects of the behavior in dbUtils that are relying on sqlite, in particular weak type checking. I can do some work on that later but wanted to get this up for merge first so we don't duplicate effort. This should not affect current working sqlite setups.

PR Checklist

  • Pull request has descriptive title
  • Pull request gives overview of changes
  • New code has inline comments where necessary
  • Any new modules, functions or classes have docstrings consistent with dbprocessing style
  • (N/A) Major new functionality has appropriate Sphinx documentation
  • (N/A) Added an entry to release notes if fixing a major bug or providing a major new feature
  • (N/A) New features and bug fixes should have unit tests
  • Relevant issues are linked in the description (use Closes # if this PR closes the issue, or some other reference, such as See # if it is related in some other way)

There's no Sphinx documentation or release notes yet since the functionality isn't completed. Similarly for testing--there's a skeleton of a functional, but ultimately the unit tests will have to be reworked to support all of this.

@jtniehof

Copy link
Copy Markdown
Member Author

This is what I get for being lazy. Fixed.

@jtniehof
jtniehof requested a review from dnadeau-lanl January 20, 2021 20:09
@dnadeau-lanl
dnadeau-lanl merged commit 11a417e into spacepy:master Jan 22, 2021
@jtniehof
jtniehof deleted the postgres_dbutils branch January 22, 2021 19:44
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.

2 participants