We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f94f19 commit 65479bcCopy full SHA for 65479bc
src/config.rs
@@ -86,6 +86,12 @@ impl Config {
86
Ok(self)
87
}
88
89
+ /// Allow to load third-party duckdb extensions.
90
+ pub fn allow_unsigned_extensions(mut self) -> Result<Config> {
91
+ self.set("allow_unsigned_extensions", "true")?;
92
+ Ok(self)
93
+ }
94
+
95
/// The maximum memory of the system (e.g. 1GB)
96
pub fn max_memory(mut self, memory: &str) -> Result<Config> {
97
self.set("max_memory", memory)?;
@@ -172,6 +178,7 @@ mod test {
172
178
.default_order(crate::DefaultOrder::Desc)?
173
179
.enable_external_access(true)?
174
180
.enable_object_cache(false)?
181
+ .allow_unsigned_extensions()?
175
182
.max_memory("2GB")?
176
183
.threads(4)?;
177
184
let db = Connection::open_in_memory_with_flags(config)?;
0 commit comments