Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Great library ... a few thoughts #229

Open
mikehawkes opened this issue Mar 2, 2019 · 3 comments
Open

Great library ... a few thoughts #229

mikehawkes opened this issue Mar 2, 2019 · 3 comments

Comments

@mikehawkes
Copy link

Thanks for a great library. I have a couple of questions / suggestions though:

Is there a way to build ‘temporary schemas’ against a map[string]interface{} - this would allow me to create a self-discovery handler against an external REST API or back-to-back against DGraph etc?

Also, is there a plan to allow the use of other DBs such as SQLite or Postgres? Sort of linked to the first question as I’m developing a service to link to Graph and SQL databases and a fixed structure means a code change for a field change.

Thanks again for a great library!

@lmuench
Copy link

lmuench commented Mar 5, 2019

Also, is there a plan to allow the use of other DBs such as SQLite or Postgres?

I built a very basic app with thunder and Postgres using GORM. So far I didn't experience any problems combining thunder with GORM.

@mikehawkes
Copy link
Author

Thanks - but it's still against a fixed structure, so doesn't resolve the 'self-discovery' capability. This locks the database directly to structures embedded in the code - a simple change to the DB means that I have to add a dev cycle to revise the structures and then recompile, deploy ets. I was looking for something a little more dynamic. Thoughts / comments most welcome. Thanks again.

@ghost
Copy link

ghost commented May 8, 2019

@mikehawkes
Why not then just model the data in the DB in a generic way ?
For example a Table with 20 fields of all strings named Record Type, arg1, arg2, etc

thunder will pick it up and then you can do what you want.
For example the first field can be "Record type", and then you map the arg(1 to 20) to whatever you need.
Its NOT ideal i know but i think it would work.

Ironically i have seen this used in Oracle Financials. They use the Tables with numbered fields as a poor many Protobuf !!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants