schemachange
dbmate
schemachange | dbmate | |
---|---|---|
9 | 25 | |
457 | 4,378 | |
2.4% | - | |
6.7 | 8.1 | |
6 days ago | 22 days ago | |
Python | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
schemachange
- Snowflake Schema Compare Tools
-
Better alternatives to schemachange for Snowflake Database Object Deployment
Our organization is transitioning from Microsoft SQL Server to Snowflake. We could use SQL Server Database Projects to deploy schema changes to our data warehouse within the SQL Server space. With Snowflake, the default tool is schemachange. Does anyone know of a database DevOps tool for Snowflake that is more like SQL Server Database Projects?
-
Help: Best Practices for Dev/Prod Environment Management in Snowflake?
We use schemachange to deploy scripts, and we have a database prefix variable that we pass in to denote which set of clones this is, so you can spin up your own clone - so any scripts that work across databases have use that in jinja. We have a CICD pipeline in Jenkins (but I also have this replicated in a local Jupyter notebook) where we clone the DBs with this same prefix, apply the schemachange scripts from our stacks (we have multiple stacks and a deployment order through them to manage cross dependencies) and then you're good to go.
-
Terraform vs Pulumi vs CloudFormation as IaC for Snowflake on AWS
We have tried Terraform and others like Snowchange and in the end, we use Snowchange: - Terraform for Snowflake has a very tricky thing is that the table is replaced whenever Terraform detects a change. This is OK for AWS resources but it is bad for data thing like Snowflake - you don't want any change, unless you specifically want to. - We then have to use the second one, Snowchange. This one idea is simple: it marks the SQL files with versions, such as V0.1.1. Snowchange will only run the files if and only if the files are bigger than the biggest recorded in a table in Snowflake (which is done by itself). For example, if the largest version is V0.1.1, and some user accidentally changes the file of V0.1.0, since it is smaller than 0.1.1, the changes are not deployed. Users have to manually the file name to 0.1.2 for it to run.
-
Database version control: how do you do it at your company?
Schemachange https://github.com/Snowflake-Labs/schemachange
-
schemachange VS SnowDDL - a user suggested alternative
2 projects | 14 Jul 2022
-
State based change management tool for Snowflake
I've trialled schemachange and liquibase which are change script based tools. I've ruled out a whole load of other tools that are either change script based tools or don't support Snowflake, including the following:
-
Without Redgate what is a cheaper option for production deployment & version control?
For Snowflake, we ended up using this script: https://github.com/Snowflake-Labs/schemachange
- [github] Snowflake-Labs/schemachange: Simple python based tool to manage all of your Snowflake objects. It follows an Imperative-style approach to Database Change Management (DCM)
dbmate
-
Ask HN: What tool(s) do you use to code review and deploy SQL scripts?
A regular code repo with the scripts (with pull/merge requests for review) and then a CI job that builds containers with something like dbmate https://github.com/amacneil/dbmate that can then be run against any staging/prod environment.
-
Level UP your RDBMS Productivity in GO
As we want to maintain the track of our changes to the DB, we are going to use migrations. In this case, we are going to use dbmate. But, you can use any other tool you want.
-
Rails 7.1 Released
> For example having database migrations built in etc.
I actually went the exact opposite route, at least when possible: https://github.com/amacneil/dbmate
Pure SQL migrations, regardless of the back end technology that you use, completely decoupled from how each framework/library views things and therefore not dependent on them (you could even rewrite the back end in another technology later on, if needed; or swap ORMs; or avoid issues when there's a major ORM version update).
It's really nice when you can generate entity mappings based on a live database, like with https://blog.jetbrains.com/dotnet/2022/01/31/entity-framewor...
So in my case, I can have:
* a DB that has migrations applied with dbmate, completely decoupled from any back end(s) that might use it
- FLaNK Stack Weekly 2 October 2023
-
How do your teams run DB migrations?
You can run dbmate as part of your CI/CD pipeline. You just keep a dbmate directory in your repo and deploy migrations with your code.
-
Working with TypeORM 0.3x with Nestjs - I wasn't aware so many people were facing issues with it
In general with ORMs, you will face a problem in one way or another. I ended up simply using https://github.com/gajus/slonik and https://github.com/amacneil/dbmate for migrations. My life is way much better since then.
-
what do you use for migrations? or how do you the sql tables and seeding?
I like dbmate, super simple and straightforward to use. For your specific use case, it can also be configured using your .env!
- GORM
-
New post: Is Prisma better than your 'traditional' ORM?
Would always go for a language agnostic migration tool, e.g. https://github.com/amacneil/dbmate to stay flexible and stay away from lock-in effects (besides sql).
- I greatly dislike ORMs, but I find myself wanting ORM agnostic SQL migration tools. What do you use to perform RDBMS table migrations outside of an ORM?
What are some alternatives?
liquibase - Main Liquibase Source
sqlite-bench - PostgreSQL & SQLite Speed Test
SnowDDL - Declarative-style object management tool for Snowflake.
goose - A database migration tool. Supports SQL migrations and Go functions.
bytebase.com - Source for bytebase.com
Flyway - Flyway by Redgate • Database Migrations Made Easy.
cloudformation-snowflake-resource-providers - SnowFlake CFN Registry resource
bytebase - The GitHub/GitLab for database DevOps. World's most advanced database DevOps and CI/CD for Developer, DBA and Platform Engineering teams.
migra - Like diff but for PostgreSQL schemas
SQLBoiler - Generate a Go ORM tailored to your database schema.
golang-samples - Sample apps and code written for Google Cloud in the Go programming language.