Skip to content

Commit 745b190

Browse files
committed
Added and tested migration
1 parent 8800a21 commit 745b190

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

pgml-extension/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml"
3-
version = "2.8.5"
3+
version = "2.9.0"
44
edition = "2021"
55

66
[lib]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-- src/api.rs:613
2+
-- pgml::api::rank
3+
CREATE FUNCTION pgml."rank"(
4+
"transformer" TEXT, /* &str */
5+
"query" TEXT, /* &str */
6+
"documents" TEXT[], /* alloc::vec::Vec<&str> */
7+
"kwargs" jsonb DEFAULT '{}' /* pgrx::datum::json::JsonB */
8+
) RETURNS TABLE (
9+
"corpus_id" bigint, /* i64 */
10+
"score" double precision, /* f64 */
11+
"text" TEXT /* core::option::Option<alloc::string::String> */
12+
)
13+
IMMUTABLE STRICT PARALLEL SAFE
14+
LANGUAGE c /* Rust */
15+
AS 'MODULE_PATHNAME', 'rank_wrapper';

0 commit comments

Comments
 (0)