feat: Add ZeroDB installer

- Add a new ZeroDB installer to the installers.
This commit is contained in:
Mahmoud Emad
2025-02-12 13:44:52 +00:00
parent f6e7644284
commit 147c889b53
10 changed files with 481 additions and 627 deletions

View File

@@ -1,4 +1,4 @@
module zdb
module zerodb_client
import freeflowuniverse.herolib.core.redisclient
import freeflowuniverse.herolib.ui.console
@@ -14,11 +14,12 @@ pub mut:
// /tmp/redis-default.sock
pub fn get(addr string, auth string, namespace string) !ZDB {
console.print_header(' ZDB get: addr:${addr} namespace:${namespace}')
mut redis := redisclient.get(addr)!
mut redis := redisclient.new(addr)!
mut zdb := ZDB{
redis: redis
}
println('Here..')
if auth != '' {
zdb.redis.send_expect_ok(['AUTH', auth])!
}