question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edgedb schema import/export

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
elpranscommented, Aug 23, 2020

To export current schema into .esdl files a DESCRIBE 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).

1reaction
elpranscommented, Sep 17, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found