Skip to content

Idea: Use temp/virtual row for insert #70

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

Closed
ssweber opened this issue Feb 15, 2023 · 4 comments
Closed

Idea: Use temp/virtual row for insert #70

ssweber opened this issue Feb 15, 2023 · 4 comments

Comments

@ssweber
Copy link
Collaborator

ssweber commented Feb 15, 2023

This relates to Unique/Not-Null fields.

It would be interesting to explore how to have an alternate insert - one that creates the row virtually, and only inserts on save, with validators automatically checking Not Null fields and uniqueness.

I don’t know how this would affect dynamic columns.

Behavior: click insert. Insert button inactive. New record/row appears. If you move away and don’t save, row is never saved.

@ssweber ssweber mentioned this issue Feb 15, 2023
22 tasks
@PySimpleSQL
Copy link
Owner

Yeah, the insert functionality is very very basic. It should be expanded on. A parameter flag for a virtual row would work fine for the use case you suggested - though it might get tricky saving since it relies on updating a current record (an UPSERT could help remedy that though)

@ssweber
Copy link
Collaborator Author

ssweber commented Feb 16, 2023

UPSERT - You’re speaking new language to me. I have a lot to learn about sql.

@PySimpleSQL
Copy link
Owner

PySimpleSQL commented Feb 16, 2023 via email

@ssweber
Copy link
Collaborator Author

ssweber commented Feb 21, 2023

Seems like abstract_database pretty much fixes this one.

@ssweber ssweber closed this as completed Feb 21, 2023
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

No branches or pull requests

2 participants