RFC: Thoughts on databases. #3313
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. |
Beta Was this translation helpful? Give feedback.
-
I'm also against abstracting DBs |
Beta Was this translation helpful? Give feedback.
-
Turning this into a discussion until we figure out some action items |
Beta Was this translation helpful? Give feedback.
-
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.
|
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions