Show HN: Stellar – Git for PostreSQL and MySQL
71–79 of 79 posts
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#72From the code: INSERT INTO %s.%s SELECT * FROM %s.%s Yeah, good luck with that.
What's wrong with that? Assuming you escape the table names correctly, that seems reasonable. And if you can't escape the table names, you're going to have a hard time dynamically generating queries anyway. Parameterized queries are a baseline requirement for values , but are rarely supported by client libraries for things like table or schema names.
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#73Generally the hardest thing with version control on a database (for an evolving codebase) is separating unrelated changes - such as schema changes vs content updates - and branching and merging those changes in sync with the code dependencies. Another issue is non-destructively replaying development changes into test/production environments. So for example, you might have a feature branch that includes some schema ch…
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#74Re: Show HN: Stellar – Git for PostreSQL and MySQL
#75Earlier quoted context omitted.
I would disagree that referential integrity and schemas are the only issues a DB version control should focus on. For example, I would be very interested in having git like branching on top of something like this - http://sandbox.substance.io/docs/lorem_ipsum.json . Basically version controlled schemaless object tree. I recently implemented something like this, backed by mongodb, and by exposing a HTTP api which mimi…
You can implement a change DAG for a DB inside the DB. It works pretty well.
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#76Earlier quoted context omitted.
This sounds like something Sqitch would help with. http://sqitch.org
FWIW, I found shmig [1] much simpler than sqitch. Last I used sqitch, it returned a zero value on error, which made me leery of using it for scripted deployments. [1] https://github.com/naquad/shmig
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#77Re: Show HN: Stellar – Git for PostreSQL and MySQL
#78Earlier quoted context omitted.
There are only like 700 lines of Python code. Figure it out and submit a pull request to update the README.
So it's yet another toy project with grandiose, overblown claims ("git for databases"? seriously?!) An honest update to the README would be to take the whole thing down several notches, if nothing else then to avoid the kind of confusion the post you're replying to expresses.
Re: Show HN: Stellar – Git for PostreSQL and MySQL
#79Earlier quoted context omitted.
Why not use a binary backup method? Faster to backup and restore.
Agreed. I've been successfully using mylvmbackup on 10gb+ databases for a few years now. http://www.lenzg.net/mylvmbackup/