edgedb / edgedb-python

The official Python client library for EdgeDB
https://edgedb.com
Apache License 2.0
369 stars 45 forks source link

[codegen] Allow option to specify directory to get edgeql files from #406

Closed Parapheen closed 1 year ago

Parapheen commented 1 year ago

In my code structure I'd like to have for each domain its own file with queries. For this I've created a folder for each domain and filled it with relevant edgeql queries.

Right now I only can codegen all files and then construct from each file one .py repository with all necessary queries.

Would be awesome to specify --file with some --dir option to have one file for the domain.

I could try to create a PR by myself on that (never done it before). But in case I'd be slower or unsuccessful with that filing it here (: