You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -182,6 +191,45 @@ We can now use this function in our code.
182
191
Generators work by connecting to the database to get information about the current state of the schema. Make sure you run the generators again any time the schema changes so that the generated code is in-sync with the current state of the schema.
183
192
184
193
194
+
File Pattern Selection
195
+
----------------------
196
+
197
+
By default, the generator scans your entire project for ``*.edgeql`` files. You can specify which files to process using glob patterns as positional arguments.
Patterns are resolved relative to your current working directory and will automatically exclude schema management files to prevent accidentally processing migrations.
231
+
232
+
185
233
Single-file mode
186
234
----------------
187
235
@@ -205,6 +253,9 @@ The following command will run the generator in ``--file`` mode.
A single file will be generated that exports two functions, ``getUser`` and ``getMovies``. By default this file is generated into the ``dbschema`` directory.
0 commit comments