#dbmaters #dbmate #d-bmaters #localhost-mydb

sys dbmaters

A Rust library for database migrations using dbmate

1 unstable release

new 0.2.0 May 6, 2025
Download history 86/week @ 2025-05-02

86 downloads per month

MIT license

4MB
59 lines

Contains (static library, 4MB) build/libdbmaters.a

DBmaters

DBmaters is a Rust library that provides a C API for database migrations using the fantastic dbmate project.

Prerequisites

This library requires the Go library to be built first. Run:

make build-go-static

Building

cargo build

Usage

use dbmaters;

fn main() {
    dbmaters::create_and_migrate("postgres://localhost/mydb");
}

Dependencies