Thanks for everyone’s hardwork in realising the promise and potential of Grist.
So far, I understand that .grist files are based on SQLite databases, but I would like to get into more of the details…
Where might I find a specification for the .grist file format?
Grist files are SQLite databases, with user data stored as regular SQLite tables. Grist maintains a set of metadata tables, all starting with
_grist_*, as defined here:
There is another batch of tables all starting with
_gristsys_* storing data not needed by the “data engine” that handles formula evaluation:
Another way to approach this is to look at what is needed to make an SQLite database created outside of Grist readable by Grist. There is a utility for that (
yarn run cli sqlite), implemented here:
The script has limits but it may give ideas.
Hello. I have an SQLite database that I want to import into Grist. I am not a technical user, can someone please explain how to use the gristify.ts script to make my SQLite grist-readable?
@paul-grist you said run (
yarn run cli sqlite ) , could you explain the prerequisites for that command to work?