-
Notifications
You must be signed in to change notification settings - Fork 3
chore: data insertion implementation #831
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
Conversation
e52ff72
to
f6abce2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one. But it's also important to enable the tests that are now possible with this implementation, that exclusively tests insertion.
Even though we can't use get_records
to query until it's ok, we can execute statements to query the table directly.
@outerlook we needs to figure out how to pass |
51d8e55
to
a84b566
Compare
@outerlook |
Description
This pull request introduces a new migration script to handle primitive actions related to the events stream. The script includes actions for inserting records, checking if the contract is initiated, retrieving metadata, and verifying wallet permissions. The most important changes are:
Migration Script for Primitive Actions:
internal/migrations/002-primitive-insertion.sql
: Added a migration script that defines actions for inserting records into theprimitive_events
table, checking if the contract/stream is initiated, retrieving metadata with pagination, and verifying if a wallet is allowed to write.Related Problem
resolves: #821
How Has This Been Tested?
I am able to create the actions, but unable to test
Blocked by: