easy-db

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT

README

easy-db

easy-db is easy way to access database

Actions GoDoc Go Report Card

Install

go get github.com/lyf-coder/easy-db/db

Usage

import (
    "github.com/lyf-coder/easy-db/db"
    "github.com/lyf-coder/easy-db/connect"
)
var config = connect.Config{
	DbType:       "DbType",
	UserName:     "UserName",
	Password:     "Password",
	DatabaseName: "DatabaseName",
	Host:         "ip",
	Port:         "27017",
	Options:      nil,
}

var db = New(&config)

// exec Db interface func   	

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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