RFC: Thoughts on databases. #3313
marciocadev
started this conversation in
Ideas
Replies: 4 comments
|
I'm also against creating an abstraction around the various databases. I think if you go down that route people will lose either the easiness of interacting with the DB through Wing or the power that comes from the unique aspects of their chosen DB. |
0 replies
|
I'm also against abstracting DBs |
0 replies
|
Turning this into a discussion until we figure out some action items |
0 replies
|
The term database is a bit too generic to be backed by a concrete abstraction. Perhaps bucketing the available classes of databases across cloud providers can be the source of a more actionable generic.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature Spec
I was thinking about what @ekeren said about DB, and I agree with what he said.
the wise words of Eyal
At first, using abstractions to work in the cloud is exciting, but when it comes to databases, trying to "improve" access with new abstractions tends to make it more difficult to use. I believe that the typical cloud resource user already has prior knowledge of using databases, and our current resource (Table) seems counterintuitive to me.
If you have worked with relational databases, the Table object alone doesn't mean much. If you have worked with non-relational databases like DynamoDB, our current implementation of the Table is counterintuitive (the primary key brings to mind associations with relational databases, not the partition key of DynamoDB).
I believe that the best way to create persistence resources for the language is to focus on abstractions such as permissioning and reflect the current implementations of each database.
When creating a relational database like PostgreSQL or MySQL, allow the creation of schemas, not individual tables.
Meanwhile, for non-relational databases, reflect the particularities of each one.
Use Cases
Make the use of DB in Wing simpler.
Implementation Notes
No response
Component
SDK
Community Notes
All reactions