had to cleanup a lot in relation to optional returns

This commit is contained in:
2025-01-01 13:40:24 +01:00
parent cffd5e2f9c
commit 914e1f5073
135 changed files with 4165 additions and 3530 deletions

View File

@@ -1,27 +1,20 @@
module zerodb_client
import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.ui.console
__global (
zerodb_client_global map[string]&ZeroDBClient
zerodb_client_default string
zerodb_client_global map[string]&ZeroDBClient
zerodb_client_default string
)
/////////FACTORY
@[params]
pub struct ArgsGet {
pub mut:
name string
}
pub fn get(args_ ArgsGet) !&ZeroDBClient {
return &ZeroDBClient{}
}
// switch instance to be used for zerodb_client
pub fn switch(name string) {
zerodb_client_default = name
}