schemasync

package module
v0.0.0-...-42a428f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: MIT Imports: 9 Imported by: 0

README

SchemaSync

A library for Dgraph schema synchronization.

Installation

Require Go >= 1.13

go get -u github.com/shadowv/schemasync

Usage

Query your database's schema, then pass it to Compare and ta-da.
See example

Consequence

It could be slow to build and bigger binary due to depend on github.com/dgraph-io/dgraph/tree/master/schema.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(schema string, dbSchemaJson []byte) (string, error)

func NameOf

func NameOf(st interface{}) string

func TypeOf

func TypeOf(st interface{}) string

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