Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita02592d

Browse files
authored
rust by default (#1213)
1 parent7e213ee commita02592d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

‎pgml-dashboard/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ log = "0.4"
2929
markdown ="1.0.0-alpha.14"
3030
num-traits ="0.2"
3131
once_cell ="1.18"
32-
pgml = {version ="0.10.0",path ="../pgml-sdks/pgml/" }
32+
pgml = {path ="../pgml-sdks/pgml/" }
3333
pgml-components = {path ="../packages/pgml-components" }
3434
pgvector = {version ="0.2.2",features = ["sqlx","postgres" ] }
3535
rand ="0.8"

‎pgml-sdks/pgml/src/cli.rs‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ struct Javascript {
3636
subcommand:Subcommands,
3737
}
3838

39+
/// PostgresML CLI is Rust by default
40+
#[cfg(all(not(feature ="python"), not(feature ="javascript")))]
41+
#[derive(Parser,Debug,Clone)]
42+
#[command(author, version, about, long_about =None, name ="pgml", bin_name ="pgml")]
43+
structRust{
44+
/// TODO comment on the necessity of this argument.
45+
#[arg(name ="pgmlcli")]
46+
pgmlcli:Option<String>,
47+
48+
#[command(subcommand)]
49+
subcommand:Subcommands,
50+
}
51+
3952
#[derive(Subcommand,Debug,Clone)]
4053
enumSubcommands{
4154
/// Connect your PostgresML database to another PostgreSQL database.
@@ -160,6 +173,13 @@ async fn cli_internal() -> anyhow::Result<()> {
160173
args.subcommand
161174
};
162175

176+
// Rust by default
177+
#[cfg(all(not(feature ="python"), not(feature ="javascript")))]
178+
let subcommand ={
179+
let args =Rust::parse();
180+
args.subcommand
181+
};
182+
163183
match subcommand{
164184
Subcommands::Connect{
165185
name,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp