Closed carsonfarmer closed 10 months ago
This might actually be related to work you're doing, right @asutula?
Possibly. I'm just letting people specify the schema string in a config file. I suppose those configurations could be shared, but I also wonder what the best way of defining a schema is. Is more-sql-ish better or worse? Is something more model/orm-like better? I don't know.
yeh defs a good question. to be honest, I think something more sql-ish is the right path from tableland perspective. high-level tools can be built on top of that. for instance, sqlite just encodes the entire create statement as the schema definition. nothing more, nothing less.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Some sort of standardized schema representation format that we can use on Tableland
Describe alternatives you've considered
Dune uses something like this: https://github.com/duneanalytics/spellbook/blob/tokens-unique-test/models/nft/ethereum/nft_ethereum_schema.yml, but this is really for "models" or "views" rather than table schemas per se.
Additional context
This would make sharing and creating tables from the CLI for lager projects much more doable. It would also benefit from some of the planned work around local config files.
JSTC-18