diff --git a/README.md b/README.md index 6d617b0..e86f33b 100644 --- a/README.md +++ b/README.md @@ -99,21 +99,21 @@ export interface DB { ## Include/exclude patterns -You can choose which tables should be included during code generation by providing a glob pattern to the `--include` and `--exclude` flags. We use [micromatch](https://github.com/micromatch/micromatch) under the hood which provides advanced glob support. For instance, if you only want to include your public tables: +You can choose which tables should be included during code generation by providing a glob pattern to the `--include-pattern` and `--exclude-pattern` flags. We use [micromatch](https://github.com/micromatch/micromatch) under the hood which provides advanced glob support. For instance, if you only want to include your public tables: ```bash -kysely-codegen --include="public.*" +kysely-codegen --include-pattern="public.*" ``` You can also include only certain tables within a schema: ```bash -kysely-codegen --include="public.+(user|post)" +kysely-codegen --include-pattern="public.+(user|post)" ``` Or exclude an entire class of tables: ```bash -kysely-codegen --exclude="documents.*" +kysely-codegen --exclude-pattern="documents.*" ``` ## Help