fix deprecated macro sql_function
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user