sqlx prepare added
This commit is contained in:
@@ -25,6 +25,7 @@ pub fn execute_script(
|
||||
) -> Result<Value, ExecutionError> {
|
||||
let mut vm = Engine::new();
|
||||
|
||||
// SAFETY: THIS IS NEEDS TO BE REDONE
|
||||
// Convert to Box<str> then leak to get 'static lifetime
|
||||
let static_script: &'static str = Box::leak(script.to_string().into_boxed_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user