-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple GUC variable for duckdb cloud secret
* `quack.cloud_secret` provides way to store information about remote cloud service secret. Format of GUC should be <TYPE>#<KEY>#<SECRET>#<REGION> and variable is stored only in current session.
- Loading branch information
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <sstream> | ||
|
||
#include <cstdio> | ||
#include <cstdarg> | ||
#include <cstring> | ||
|
||
namespace quack { | ||
|
||
inline std::vector<std::string> | ||
tokenizeString(char *str, const char delimiter) { | ||
std::vector<std::string> v; | ||
std::stringstream ss(str); // Turn the string into a stream. | ||
std::string tok; | ||
while (getline(ss, tok, delimiter)) { | ||
v.push_back(tok); | ||
} | ||
return v; | ||
}; | ||
|
||
} // namespace quack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters