fix deprecated macro sql_function

This commit is contained in:
2026-03-23 18:10:41 +08:00
parent bdb3bc49a6
commit fae30ed97a

View File

@@ -16,9 +16,12 @@ use rocket::serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
use std::collections::HashMap;
sql_function!(fn random());
sql_function!(fn floor(x: Float) -> Int4);
sql_function!(fn float4(x: Int4) -> Float);
#[declare_sql_function]
extern "SQL" {
fn random() -> Text;
fn floor(x: Float) -> Int4;
fn float4(x: Int4) -> Float;
}
macro_rules! _get {
($table:ident) => {