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

OMM: Bring in SQLAlchemy, get database working #1349

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

dougneal
Copy link
Contributor

@dougneal dougneal commented Aug 17, 2023

Summary

Bring in SQLAlchemy, Alembic, and the Flask integrations for them.

I've added a couple of models/dataclasses/tables - banks and hashes - really just something super basic to get us started, I expect this to change a lot.

There was some discussion about whether to use plain dataclasses with separate ORM classes; we can still do that if we want to.

Test Plan

Rebuild the dev container and watch the tables be created!

Copy link
Contributor

@Dcallies Dcallies left a comment

Choose a reason for hiding this comment

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

I think the Model stuff influenced the later python dataclass design.

Looks good - please add summary + test plan for future historians!

@dougneal dougneal changed the title (WIP) start adding SQLAlchemy stuff OMM: Bring in SQLAlchemy, get database working Aug 29, 2023
@dougneal dougneal marked this pull request as ready for review August 29, 2023 11:39
@dougneal
Copy link
Contributor Author

I should probably update the CONTRIBUTING.md with details of the db migrations etc and how to change the data model.

@dougneal dougneal merged commit 45dff06 into facebook:main Sep 1, 2023
3 of 5 checks passed
@dougneal dougneal deleted the omm-sqlalchemy-etc branch September 1, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants