tablelandnetwork / js-tableland-cli

Development has moved to: https://github.com/tablelandnetwork/tableland-js/
MIT License
12 stars 2 forks source link

[JSTC-18] Provide (standard) way for users to specify schemas (and share them) for table creation #73

Closed carsonfarmer closed 10 months ago

carsonfarmer commented 2 years ago

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

carsonfarmer commented 1 year ago

This might actually be related to work you're doing, right @asutula?

asutula commented 1 year ago

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.

carsonfarmer commented 1 year ago

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.