Update clickhouse README.md

This commit is contained in:
Juan Calderon-Perez
2024-07-03 08:18:55 -04:00
committed by GitHub
parent e744bc09fa
commit f9d76aa3d6

View File

@@ -44,13 +44,11 @@ docker run -d -p 9000:9000 --name some-clickhouse-server --ulimit nofile=262144:
After running this command you're ready to start using the storage and connecting to the database.
### Examples
Import the storage package.
```go
import "github.com/gofiber/storage/coherence"
```
You can use the following possibilities to create a storage:
You can use the following options to create a clickhouse storage driver:
```go
import "github.com/gofiber/storage/clickhouse"
// Initialize default config, to connect to localhost:9000 using the memory engine and with a clean table.
store, err := clickhouse.New(clickhouse.Config{
Host: "localhost",
@@ -69,7 +67,7 @@ store, err := clickhouse.New(clickhouse.Config{
// Initialize to connect with TLS enabled with your own tls.Config and with clean table.
tlsConfig := config := &tls.Config{...}
store, err := clickhouse.New(coherence.Config{
store, err := clickhouse.New(clickhouse.Config{
Host: "some-ip-address",
Port: 9000,
Clean: true,
@@ -116,4 +114,4 @@ var DefaultConfig = Config{
Engine: "Memory",
Clean: false,
}
```
```