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

Memo trait #17

Merged
merged 2 commits into from
Nov 17, 2024
Merged

Memo trait #17

merged 2 commits into from
Nov 17, 2024

Conversation

connortsui20
Copy link
Member

@connortsui20 connortsui20 commented Nov 6, 2024

This (draft) PR adds a Memo trait and a first draft of an implementation of the Memo trait via the backed ORM-mapped database.

We use associated types to allow the implementor to define what the types they want to represent each concept.

There are a few todos still that I can't resolve myself, like how to add the children of both types of expressions into the ORM, since if you just have a JSON you can't figure it out on your own (unless you write something that is dependent on the variant tag).

Additionally, there are a few places where I arbitrarily choose to get IDs for a group or expression versus the entire tuple / record. I just chose what was easiest via the ORM, that can be easily changed if we need to.

@SarveshOO7
Copy link
Contributor

SarveshOO7 commented Nov 17, 2024

Let's make sure we squash commits before we merge. We can squash them into multiple commits if necessary.

This commit adds a `Memo` trait and a first draft of an implementation
of the `Memo` trait via the backed ORM-mapped database.

pushing entities
@connortsui20 connortsui20 marked this pull request as ready for review November 17, 2024 22:50
@connortsui20 connortsui20 merged commit 38d5598 into main Nov 17, 2024
11 checks passed
@connortsui20 connortsui20 deleted the memo-trait branch November 17, 2024 22:53
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