spacepy / dbprocessing

Automated processing controller for heliophysics data
5 stars 4 forks source link

Minimal postgresql support in dbUtils #64

Closed jtniehof closed 3 years ago

jtniehof commented 3 years ago

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

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 commented 3 years ago

This is what I get for being lazy. Fixed.