[HN Gopher] DBCore
___________________________________________________________________
DBCore
Author : omarfarooq
Score : 60 points
Date : 2021-11-08 21:23 UTC (1 hours ago)
(HTM) web link (www.dbcore.org)
(TXT) w3m dump (www.dbcore.org)
| eatonphil wrote:
| Unexpected to see this here! I have not done a lot of work on
| this recently, but happy to answer any questions if you have any.
| omarfarooq wrote:
| Came across it on an old comment where you said you were
| building something similar to Supabase. ;)
| claytonjy wrote:
| Looks a lot like PostgREST, but with more backends (not just
| postgres), fewer fancy features (joins? not mentioned here), and
| with the client-side code generator built in (typescript).
|
| If the author is reading, assuming I'm using Postgres and
| typescript, in what situations would I choose this over PostgREST
| + any openapi code generator?
| eatonphil wrote:
| The difference between this and openapi code generator (I
| think) is that I made a few specific decisions in the builtin
| templates that help get internal business apps off the ground
| faster. But since it's designed around a template system you
| could do whatever you want with it. And of course openapi is
| much more mature just generally speaking.
|
| It's different from PostgREST in that it doesn't dynamically
| read schemas from the DB during the application server runtime.
| You generate an application from the DB up front and then you
| can do whatever you want with that generated application
| afterward.
| eurasiantiger wrote:
| How to migrate to a backwards-incompatible version of the
| schema without data loss?
| gravypod wrote:
| I would love if something like this existed except it used a
| .proto as the source of truth and had a way to provide ways to
| rename/query certain fields.
|
| Would make it easy to replace shared DBs with APIs over time.
| DoctorOW wrote:
| Interesting how many languages are in here, HTML/CSS/TS on the
| front-end is no surprise, Go on the generated back-end is a
| little less expected than full-stack Typescript. The fact that
| the tool itself is in F# is really interesting. I kind of
| expected it to be some combinations of the others.
|
| This is really cool. Poking around the source code, it's
| surprisingly simple. It's just a database -> template engine with
| a front-end/back-end template included.
| PaulHoule wrote:
| It is not surprising it is that simple. It really is that
| simple to generate CRUD templates. People just don't do it.
___________________________________________________________________
(page generated 2021-11-08 23:00 UTC)