https://github.com/lyf-coder/easy-db
easy-db is easy way to access database
https://github.com/lyf-coder/easy-db
database easy-db go
Last synced: 6 months ago
JSON representation
easy-db is easy way to access database
- Host: GitHub
- URL: https://github.com/lyf-coder/easy-db
- Owner: lyf-coder
- License: mit
- Created: 2020-02-09T03:44:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T08:06:33.000Z (over 4 years ago)
- Last Synced: 2024-06-21T13:05:15.642Z (about 2 years ago)
- Topics: database, easy-db, go
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy-db
easy-db is easy way to access database
[](https://github.com/lyf-coder/easy-db/actions?query=workflow%3ACI)
[](https://godoc.org/github.com/lyf-coder/easy-db)
[](https://goreportcard.com/report/github.com/lyf-coder/easy-db)
## Install
```console
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