Comments (5)
I like your suggestion: the database name option should be called --database
and --schema
should mean the schema name. One question: should --schema
take a list of schema names, like --schema foo,bar,public
?
This will require some rewriting of docs and unit tests. Is this something you can send a pull request for? If not, I can get to it sometime in December.
from agnostic.
I can probably do a pull request, though I might not get to it immediately. I think taking multiple schema names would be useful, as would some kind of ability to run against all non-public schemas.
from agnostic.
Ok. Let me know if you do get started on it, so that we don't duplicate effort. If I get started first, I'll let you know.
from agnostic.
Hey @patrick-jones I've just pushed an implementation of what we discussed about renaming --schema
to --database
and adding a new --schema
flag in its place. It supports Postgres search paths, including the special $user
path, e.g. ``--schema '"$user",public'`. I did not implement the "run against all non-public schemas" feature.
I tested this carefully to verify that it works as I think it should, but I don't use schemas myself (I put everything in public), so I could use your feedback on whether this works as you expect it to.
from agnostic.
Sorry for ignoring you -- I'll try to look into this soon.
from agnostic.
Related Issues (17)
- Add integration tests for PostgreSQL schema support
- Integration test for postgres schema support HOT 1
- Fix debug flag
- Separate "restore backup" from "restore snapshot"
- agnostic unable to find mysqldump despite being present in PATH HOT 3
- Link to documentation in README.rst is broken. HOT 1
- Add posibility to work with any database.
- MariaDB support
- No change in db after the migration script ran
- Error on connection with pg8000 1.12.3 and postgres 13.4 HOT 2
- Create a way to migrate or bootstrap HOT 3
- Absence of migrations should not be an error
- No database password HOT 3
- Boostraped migrations HOT 2
- Documentation about sorting migration names with @, _ is incorrect
- Add SQLite support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agnostic.