sqlike

package module
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

SQL databases with Blacksmith

Module sqlike offers a Go API to Load data from a Blacksmith application to any SQL database offering a driver built on top of the package database/sql.

This module also offers the possibility to manage and version databases migrations using the Blacksmith CLI.

Version compatibility

Modules follow the semantic versioning of Blacksmith for major and minor versions. For example, a module v0.18.x will be compatible with Blacksmith v0.18.x.

License

Repository licensed under the Apache License, Version 2.0.

By downloading, installing, and using Blacksmith, you agree to the Blacksmith Terms and Conditions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadMigrations

func LoadMigrations(directory string) ([]*wanderer.Migration, error)

LoadMigrations loads SQL migrations files from a directory.

func RunMigration

func RunMigration(db *sql.DB, directory string, migration *wanderer.Migration) error

RunMigration runs a SQL migration within a transaction using the standard database/sql package.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL