We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent00650e8 commit0ac8a52Copy full SHA for 0ac8a52
pgml-extension/src/bindings/mod.rs
@@ -8,7 +8,7 @@ use pyo3::{pyfunction, PyResult, Python};
8
usecrate::orm::*;
9
10
#[pyfunction]
11
-fnr_insert_logs(project_id:i64,model_id:i64,logs:String) ->PyResult<String>{
+pubfnr_insert_logs(project_id:i64,model_id:i64,logs:String) ->PyResult<String>{
12
let id_value =Spi::get_one_with_args::<i64>(
13
"INSERT INTO pgml.logs (project_id, model_id, logs) VALUES ($1, $2, $3::JSONB) RETURNING id;",
14
vec![
@@ -23,7 +23,7 @@ fn r_insert_logs(project_id: i64, model_id: i64, logs: String) -> PyResult<Strin
23
}
24
25
26
-fnr_log(level:String,message:String) ->PyResult<String>{
+pubfnr_log(level:String,message:String) ->PyResult<String>{
27
match level.as_str(){
28
"info" =>info!("{}", message),
29
"warning" =>warning!("{}", message),