darwin alternatives and similar packages
Based on the "Database" category.
Alternatively, view darwin alternatives based on common mentions on social networks and blogs.
-
cockroach
CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement. -
tidb
TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications. -
Milvus
Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search -
TinyGo
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM. -
groupcache
groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases. -
bytebase
World's most advanced database DevSecOps solution for Developer, Security, DBA and Platform Engineering teams. The GitHub/GitLab for database DevSecOps. -
go-cache
An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications. -
immudb
immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history -
buntdb
BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support -
pREST
PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new -
xo
Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server -
nutsdb
A simple, fast, embeddable, persistent key/value store written in pure Go. It supports fully serializable transactions and many data structures such as list, set, sorted set. -
lotusdb
Most advanced key-value database written in Go, extremely fast, compatible with LSM tree and B+ tree. -
gocraft/dbr (database records)
Additions to Go's database/sql for super fast performance and convenience.
CodeRabbit: AI Code Reviews for Developers

Do you think we are missing an alternative of darwin or a related project?
Popular Comparisons
README
Try browsing the code on Sourcegraph!
Darwin
Database schema evolution library for Go
Example
package main
import (
"database/sql"
"log"
"github.com/GuiaBolso/darwin"
_ "github.com/go-sql-driver/mysql"
)
var (
migrations = []darwin.Migration{
{
Version: 1,
Description: "Creating table posts",
Script: `CREATE TABLE posts (
id INT auto_increment,
title VARCHAR(255),
PRIMARY KEY (id)
) ENGINE=InnoDB CHARACTER SET=utf8;`,
},
{
Version: 2,
Description: "Adding column body",
Script: "ALTER TABLE posts ADD body TEXT AFTER title;",
},
}
)
func main() {
database, err := sql.Open("mysql", "root:@/darwin")
if err != nil {
log.Fatal(err)
}
driver := darwin.NewGenericDriver(database, darwin.MySQLDialect{})
d := darwin.New(driver, migrations, nil)
err = d.Migrate()
if err != nil {
log.Println(err)
}
}
Questions
Q. Why there is not a command line utility?
A. The purpose of this library is just be a library.
Q. How can I read migrations from file system?
A. You can read with the standard library and build the migration list.
Q. Can I put more than one statement in the same Script migration?
A. I do not recommend. Put one database change per migration, if some migration fail, you exactly what statement caused the error. Also only postgres correctly handle rollback in DDL transactions.
To be less annoying you can organize your migrations like? 1.0, 1.1, 1.2 and so on.
Q. Why does not exists downgrade migrations?
A. Please read https://flywaydb.org/documentation/faq#downgrade
Q. Does Darwin perform a roll back if a migration fails?
A. Please read https://flywaydb.org/documentation/faq#rollback
Q. What is the best strategy for dealing with hot fixes?
A. Plese read https://flywaydb.org/documentation/faq#hot-fixes
LICENSE
The MIT License (MIT)
Copyright (c) 2016 Claudemiro
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the darwin README section above
are relevant to that project's source code only.