Is there any work being done to provide a database independent API that higher level frameworks could be built upon?
I'm thinking of something like the JDBC API but for Swift, where all you need is the driver from your database vendor and you are up and running.
The driver could use the database vendor's native libraries. It could also be written in Swift on top of SwiftNIO.
The library could be called SDBC, or SwiftDBC, or SwiftDB, but would require a driver to actually connect and talk to a specific database.
I've seen some activity in drivers being written using SwiftNIO. That is great start but I think a unified API would be highly beneficial to developers and open the door to the creation of very cool and powerful higher level frameworks.
For example, a database independent object to relational mapping similar to Apple's Enterprise Objects Framework included in the good/old/awesome/end-of-lifed WebObjects product.
It's really odd to me that many years ago Apple had the Enterprise Objects Framework (EOF) ported to java and used JDBC to connect to all kinds of databases.
Swift is a beautiful and elegant language but it's totally lacking database connectivity on the server. :-(
I would love to see that change.