jmafc/Pyrseas — Issue #20: Support multiple named schemas on dbtoyaml (and yamltodb)
Author: rhunwicks
Created: 2012-01-19 06:52:13+00:00
State: open

*dbtoyaml* allows you to extract the definition for a single named schema:

```
Usage: dbtoyaml [options] dbname

Options:
-n SCHEMA, --schema=SCHEMA
only for named schema (default none)
```

It also allows you to extract the definitions for a list of named tables, ignoring the other tables:

```
Usage: dbtoyaml [options] dbname

Options:
-t TABLIST, --table=TABLIST
only for named tables (default all)
```

It would be useful it we could use the same approach with schemas - i.e. default to extracting all schemas, but allow the `--schema=` option to accept a list of schemas.

```
Usage: dbtoyaml [options] dbname

Options:
-n SCHEMALIST, --schema=SCHEMALIST
only for named schemas (default all)
```

If you also implement #19 then the new syntax should apply to *yamltodb* too.