Edgedb schema import/export
See original GitHub issueIs it possible to load(import migrations from file) or to save(export) migrations to .esdl file?
As far as I seen, not yet.
I want to implement this feature, but I need to discuss how would it work first.
My idea is to integrate it to cli like so:
edgedb schema export file_name.esdl
to export current database schema to file
edgedb schema import file_name.esdl
to import to database
Where importing would just run
CREATE MIGRATION {file_name} TO {file_contents}
And exporting would save all the schema? From what I can see, there is only CREATE MIGRATION and GET MIGRATION, is it possible to get current schema or list of migrations via edgeql?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Schema | EdgeDB Docs
EdgeDB's baked-in migration system lets you painlessly evolve your schema over time. Just update the contents of your .esdl file(s) and use the...
Read more >Notes - IoT Edge database - HackMD
1~5: Edge DB, 6~11:Management & Application ... DB Management -Migrate (export, import), Export to CSV, Scheduling Backup **; Edge Computing - Post Data ......
Read more >IBM Db2 warehouse vs. Redis Comparison - DB-Engines
Data scheme, yes, schema-free. Typing info ... EdgeDB raises $15M for open source graph-relational database 7 November 2022, TechTarget.
Read more >Deno vs Node.js | Converting an Existing Node.js Module to Deno
Fortunately, we don't need to worry much about converting CommonJS require/module.exports syntax to ESM import/export . We wrote edgedb-js entirely in ...
Read more >Db | npm.io
mayajsmongodbdocumentmodelschemadatabaseodmdatadatastorequery ... recordstoredatastorerecordstoredbdatabasestoreloadimportexport.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To export current schema into
.esdl
files aDESCRIBE MODULE blah AS SDL
command can be used. The implementation of RFC 1000 in edgedb/edgedb-cli would take care of the inverse (import/migrations).EdgeDB itself does not interact with *.esdl files directly, so we don’t impose any restrictions how the file is actually encoded. That said, I cannot think of any reason why anybody would want something other than UTF-8, as even Windows Notepad supports it nowadays. As for the newlines, as long as it’s a usual combination of
\n
and/or\r
, it’s fine.