Skip to content

lyf-coder/easy-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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   	

About

easy-db is easy way to access database

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published