- There are two ways to connect to the database using package. 1. **`coreimmudb.InitUsingJson()`** - Provide JSON file path to read ImmuDB config details.<br>
`[
{
- There are two ways to connect to the database using package.
1.**`coreimmudb.InitUsingJson()`** - Provide JSON file path to read ImmuDB config details.<br>
```
[
{
"hostName": "ImmuDbHost1",
"server": "127.0.0.1",
"port": 3322,
...
...
@@ -14,39 +18,46 @@
"dir": "",
"isDefault": true,
"isDisabled": false
}
]`
Hostname (`hostName`) - Hostname for the database connection.<br>
**Note :-** These Options only work with **`GetKeyData() and GetVerifiedKeyData()`** and does not work with **`GetAllKeysData() and GetKeyHistory()`**.