One interface to connect many of database, This package is aimed not only used for codenoid/file.io
go get -u github.com/codenoid/file.io/storage
- Redis
- MongoDB
- MySQL
- PostgreSQL
- Cloud Storage (Google)
- File
import "github.com/codenoid/file.io/storage"
// type:https://user:pass@host:port/database
stg, err := storage.Connect("redis:https://127.0.0.1:6379/0")
// then you can call this function
stg.Set()
stg.Get()
Stg.Del()