package
0.0.0-20230511121945-801542d6a2ee
Repository: https://github.com/codenoid/file.io.git
Documentation: pkg.go.dev
# README
Storage
One interface to connect many of database, This package is aimed not only used for codenoid/file.io
Installation
go get -u github.com/codenoid/file.io/storage
Storage Support
- Redis
- MongoDB
- MySQL
- PostgreSQL
- Cloud Storage (Google)
- File
Example Usage
import "github.com/codenoid/file.io/storage"
// type://user:pass@host:port/database
stg, err := storage.Connect("redis://127.0.0.1:6379/0")
// then you can call this function
stg.Set()
stg.Get()
Stg.Del()
# Functions
Connect to specified `database`, return error if given `database` are invalid or unknown or panic if failed to connect.
# Interfaces
No description provided by the author