From e956840c1f7e0e46128c8477f443f3f152e6f6a1 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Mon, 5 Feb 2024 12:45:49 -0800 Subject: [PATCH 1/2] Upgrade SQLx to 0.7.3 --- pgml-dashboard/Cargo.lock | 581 +++++++++++++++++++++++++++++++++++--- pgml-dashboard/Cargo.toml | 4 +- pgml-dashboard/src/lib.rs | 4 +- 3 files changed, 538 insertions(+), 51 deletions(-) diff --git a/pgml-dashboard/Cargo.lock b/pgml-dashboard/Cargo.lock index b5563b581..f81cae953 100644 --- a/pgml-dashboard/Cargo.lock +++ b/pgml-dashboard/Cargo.lock @@ -65,14 +65,15 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" dependencies = [ "cfg-if", "getrandom", "once_cell", "version_check", + "zerocopy", ] [[package]] @@ -220,12 +221,31 @@ dependencies = [ "num-traits", ] +[[package]] +name = "atoi" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528" +dependencies = [ + "num-traits", +] + [[package]] name = "atomic" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba" +[[package]] +name = "atomic-write-file" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edcdbedc2236483ab103a53415653d6b4442ea6141baf1ffa85df29635e88436" +dependencies = [ + "nix", + "rand", +] + [[package]] name = "autocfg" version = "1.1.0" @@ -304,6 +324,12 @@ version = "0.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + [[package]] name = "bigdecimal" version = "0.3.1" @@ -356,6 +382,9 @@ name = "bitflags" version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" +dependencies = [ + "serde", +] [[package]] name = "bitpacking" @@ -584,6 +613,12 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + [[package]] name = "convert_case" version = "0.6.0" @@ -763,7 +798,7 @@ dependencies = [ "cssparser-macros", "dtoa-short", "itoa", - "phf 0.11.2", + "phf 0.10.1", "smallvec", ] @@ -871,6 +906,17 @@ dependencies = [ "uuid", ] +[[package]] +name = "der" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" +dependencies = [ + "const-oid", + "pem-rfc7468", + "zeroize", +] + [[package]] name = "deranged" version = "0.3.9" @@ -938,6 +984,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", + "const-oid", "crypto-common", "subtle", ] @@ -1077,6 +1124,17 @@ dependencies = [ "libc", ] +[[package]] +name = "etcetera" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943" +dependencies = [ + "cfg-if", + "home", + "windows-sys 0.48.0", +] + [[package]] name = "event-listener" version = "2.5.3" @@ -1184,6 +1242,17 @@ dependencies = [ "miniz_oxide", ] +[[package]] +name = "flume" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" +dependencies = [ + "futures-core", + "futures-sink", + "spin 0.9.8", +] + [[package]] name = "fnv" version = "1.0.7" @@ -1287,6 +1356,17 @@ dependencies = [ "parking_lot 0.11.2", ] +[[package]] +name = "futures-intrusive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f" +dependencies = [ + "futures-core", + "lock_api", + "parking_lot 0.12.1", +] + [[package]] name = "futures-io" version = "0.3.29" @@ -1442,7 +1522,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.7", "allocator-api2", ] @@ -1826,6 +1906,9 @@ name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +dependencies = [ + "spin 0.5.2", +] [[package]] name = "levenshtein_automata" @@ -1849,6 +1932,23 @@ dependencies = [ "winapi", ] +[[package]] +name = "libm" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" + +[[package]] +name = "libsqlite3-sys" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + [[package]] name = "line-wrap" version = "0.1.1" @@ -2219,6 +2319,23 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-bigint-dig" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" +dependencies = [ + "byteorder", + "lazy_static", + "libm", + "num-integer", + "num-iter", + "num-traits", + "rand", + "smallvec", + "zeroize", +] + [[package]] name = "num-integer" version = "0.1.45" @@ -2229,6 +2346,17 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-iter" +version = "0.1.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.17" @@ -2236,6 +2364,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ "autocfg", + "libm", ] [[package]] @@ -2463,6 +2592,15 @@ dependencies = [ "syn 2.0.32", ] +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + [[package]] name = "percent-encoding" version = "2.3.0" @@ -2494,7 +2632,7 @@ dependencies = [ "sea-query-binder", "serde", "serde_json", - "sqlx", + "sqlx 0.6.3", "tokio", "tracing", "tracing-subscriber", @@ -2547,7 +2685,7 @@ dependencies = [ "sentry-log", "serde", "serde_json", - "sqlx", + "sqlx 0.7.3", "tantivy", "time", "tokio", @@ -2558,14 +2696,13 @@ dependencies = [ [[package]] name = "pgvector" -version = "0.2.2" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f10a73115ede70321c1c42752ff767893345f750aca0be388aaa1aa585580d5a" +checksum = "a1f4c0c07ceb64a0020f2f0e610cfe51122d2e72723499f0154877b7c76c8c31" dependencies = [ - "byteorder", "bytes", "postgres", - "sqlx", + "sqlx 0.7.3", ] [[package]] @@ -2574,7 +2711,9 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ + "phf_macros", "phf_shared 0.10.0", + "proc-macro-hack", ] [[package]] @@ -2583,7 +2722,6 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_macros", "phf_shared 0.11.2", ] @@ -2593,7 +2731,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ - "phf_generator 0.10.0", + "phf_generator", "phf_shared 0.10.0", ] @@ -2607,27 +2745,18 @@ dependencies = [ "rand", ] -[[package]] -name = "phf_generator" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" -dependencies = [ - "phf_shared 0.11.2", - "rand", -] - [[package]] name = "phf_macros" -version = "0.11.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" dependencies = [ - "phf_generator 0.11.2", - "phf_shared 0.11.2", + "phf_generator", + "phf_shared 0.10.0", + "proc-macro-hack", "proc-macro2", "quote", - "syn 2.0.32", + "syn 1.0.109", ] [[package]] @@ -2680,6 +2809,27 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "pkcs1" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" +dependencies = [ + "der", + "pkcs8", + "spki", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + [[package]] name = "pkg-config" version = "0.3.27" @@ -2779,6 +2929,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + [[package]] name = "proc-macro2" version = "1.0.66" @@ -3044,11 +3200,25 @@ dependencies = [ "libc", "once_cell", "spin 0.5.2", - "untrusted", + "untrusted 0.7.1", "web-sys", "winapi", ] +[[package]] +name = "ring" +version = "0.17.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babe80d5c16becf6594aa32ad2be8fe08498e7ae60b77de8df700e67f191d7e" +dependencies = [ + "cc", + "getrandom", + "libc", + "spin 0.9.8", + "untrusted 0.9.0", + "windows-sys 0.48.0", +] + [[package]] name = "rocket" version = "0.6.0-dev" @@ -3137,6 +3307,26 @@ dependencies = [ "tokio-tungstenite", ] +[[package]] +name = "rsa" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" +dependencies = [ + "const-oid", + "digest", + "num-bigint-dig", + "num-integer", + "num-traits", + "pkcs1", + "pkcs8", + "rand_core", + "signature", + "spki", + "subtle", + "zeroize", +] + [[package]] name = "rust-stemmers" version = "1.2.0" @@ -3227,11 +3417,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" dependencies = [ "log", - "ring", + "ring 0.16.20", "sct", "webpki", ] +[[package]] +name = "rustls" +version = "0.21.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" +dependencies = [ + "ring 0.17.3", + "rustls-webpki", + "sct", +] + [[package]] name = "rustls-pemfile" version = "1.0.3" @@ -3241,6 +3442,16 @@ dependencies = [ "base64 0.21.4", ] +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring 0.17.3", + "untrusted 0.9.0", +] + [[package]] name = "rustversion" version = "1.0.14" @@ -3333,7 +3544,7 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c95a930e03325234c18c7071fd2b60118307e025d6fff3e12745ffbf63a3d29c" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.7", "cssparser", "ego-tree", "getopts", @@ -3350,8 +3561,8 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" dependencies = [ - "ring", - "untrusted", + "ring 0.16.20", + "untrusted 0.7.1", ] [[package]] @@ -3386,7 +3597,7 @@ checksum = "420eb97201b8a5c76351af7b4925ce5571c2ec3827063a0fb8285d239e1621a0" dependencies = [ "sea-query", "serde_json", - "sqlx", + "sqlx 0.6.3", ] [[package]] @@ -3722,6 +3933,16 @@ dependencies = [ "libc", ] +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest", + "rand_core", +] + [[package]] name = "siphasher" version = "0.3.10" @@ -3783,6 +4004,19 @@ name = "spin" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] [[package]] name = "sqlformat" @@ -3801,8 +4035,21 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8de3b03a925878ed54a954f621e64bf55a3c1bd29652d0d1a17830405350188" dependencies = [ - "sqlx-core", - "sqlx-macros", + "sqlx-core 0.6.3", + "sqlx-macros 0.6.3", +] + +[[package]] +name = "sqlx" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dba03c279da73694ef99763320dea58b51095dfe87d001b1d4b5fe78ba8763cf" +dependencies = [ + "sqlx-core 0.7.3", + "sqlx-macros 0.7.3", + "sqlx-mysql", + "sqlx-postgres", + "sqlx-sqlite", ] [[package]] @@ -3812,9 +4059,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa8241483a83a3f33aa5fff7e7d9def398ff9990b2752b6c6112b83c6d246029" dependencies = [ "ahash 0.7.6", - "atoi", + "atoi 1.0.0", "base64 0.13.1", - "bigdecimal", "bitflags 1.3.2", "byteorder", "bytes", @@ -3826,7 +4072,7 @@ dependencies = [ "event-listener", "futures-channel", "futures-core", - "futures-intrusive", + "futures-intrusive 0.4.2", "futures-util", "hashlink", "hex", @@ -3838,12 +4084,11 @@ dependencies = [ "log", "md-5", "memchr", - "num-bigint", "once_cell", "paste", "percent-encoding", "rand", - "rustls", + "rustls 0.20.8", "rustls-pemfile", "serde", "serde_json", @@ -3858,16 +4103,96 @@ dependencies = [ "tokio-stream", "url", "uuid", - "webpki-roots", + "webpki-roots 0.22.6", "whoami", ] +[[package]] +name = "sqlx-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d84b0a3c3739e220d94b3239fd69fb1f74bc36e16643423bd99de3b43c21bfbd" +dependencies = [ + "ahash 0.8.7", + "atoi 2.0.0", + "bigdecimal", + "byteorder", + "bytes", + "crc", + "crossbeam-queue", + "dotenvy", + "either", + "event-listener", + "futures-channel", + "futures-core", + "futures-intrusive 0.5.0", + "futures-io", + "futures-util", + "hashlink", + "hex", + "indexmap 2.0.0", + "log", + "memchr", + "once_cell", + "paste", + "percent-encoding", + "rustls 0.21.10", + "rustls-pemfile", + "serde", + "serde_json", + "sha2", + "smallvec", + "sqlformat", + "thiserror", + "time", + "tokio", + "tokio-stream", + "tracing", + "url", + "uuid", + "webpki-roots 0.25.4", +] + [[package]] name = "sqlx-macros" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9966e64ae989e7e575b19d7265cb79d7fc3cbbdf179835cb0d716f294c2049c9" dependencies = [ + "dotenvy", + "either", + "heck", + "once_cell", + "proc-macro2", + "quote", + "serde_json", + "sha2", + "sqlx-core 0.6.3", + "sqlx-rt", + "syn 1.0.109", + "url", +] + +[[package]] +name = "sqlx-macros" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89961c00dc4d7dffb7aee214964b065072bff69e36ddb9e2c107541f75e4f2a5" +dependencies = [ + "proc-macro2", + "quote", + "sqlx-core 0.7.3", + "sqlx-macros-core", + "syn 1.0.109", +] + +[[package]] +name = "sqlx-macros-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0bd4519486723648186a08785143599760f7cc81c52334a55d6a83ea1e20841" +dependencies = [ + "atomic-write-file", "dotenvy", "either", "heck", @@ -3878,12 +4203,104 @@ dependencies = [ "serde", "serde_json", "sha2", - "sqlx-core", - "sqlx-rt", + "sqlx-core 0.7.3", + "sqlx-mysql", + "sqlx-postgres", + "sqlx-sqlite", "syn 1.0.109", + "tempfile", + "tokio", "url", ] +[[package]] +name = "sqlx-mysql" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e37195395df71fd068f6e2082247891bc11e3289624bbc776a0cdfa1ca7f1ea4" +dependencies = [ + "atoi 2.0.0", + "base64 0.21.4", + "bigdecimal", + "bitflags 2.3.3", + "byteorder", + "bytes", + "crc", + "digest", + "dotenvy", + "either", + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "generic-array", + "hex", + "hkdf", + "hmac", + "itoa", + "log", + "md-5", + "memchr", + "once_cell", + "percent-encoding", + "rand", + "rsa", + "serde", + "sha1", + "sha2", + "smallvec", + "sqlx-core 0.7.3", + "stringprep", + "thiserror", + "time", + "tracing", + "uuid", + "whoami", +] + +[[package]] +name = "sqlx-postgres" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6ac0ac3b7ccd10cc96c7ab29791a7dd236bd94021f31eec7ba3d46a74aa1c24" +dependencies = [ + "atoi 2.0.0", + "base64 0.21.4", + "bigdecimal", + "bitflags 2.3.3", + "byteorder", + "crc", + "dotenvy", + "etcetera", + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "hex", + "hkdf", + "hmac", + "home", + "itoa", + "log", + "md-5", + "memchr", + "num-bigint", + "once_cell", + "rand", + "serde", + "serde_json", + "sha1", + "sha2", + "smallvec", + "sqlx-core 0.7.3", + "stringprep", + "thiserror", + "time", + "tracing", + "uuid", + "whoami", +] + [[package]] name = "sqlx-rt" version = "0.6.3" @@ -3895,6 +4312,31 @@ dependencies = [ "tokio-rustls", ] +[[package]] +name = "sqlx-sqlite" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "210976b7d948c7ba9fced8ca835b11cbb2d677c59c79de41ac0d397e14547490" +dependencies = [ + "atoi 2.0.0", + "flume", + "futures-channel", + "futures-core", + "futures-executor", + "futures-intrusive 0.5.0", + "futures-util", + "libsqlite3-sys", + "log", + "percent-encoding", + "serde", + "sqlx-core 0.7.3", + "time", + "tracing", + "url", + "urlencoding", + "uuid", +] + [[package]] name = "stable-pattern" version = "0.1.0" @@ -3939,7 +4381,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator 0.10.0", + "phf_generator", "phf_shared 0.10.0", "proc-macro2", "quote", @@ -4340,7 +4782,7 @@ version = "0.23.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" dependencies = [ - "rustls", + "rustls 0.20.8", "tokio", "webpki", ] @@ -4482,6 +4924,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -4682,6 +5125,12 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + [[package]] name = "ureq" version = "2.7.1" @@ -4707,6 +5156,12 @@ dependencies = [ "serde", ] +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + [[package]] name = "utf-8" version = "0.7.6" @@ -4860,8 +5315,8 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" dependencies = [ - "ring", - "untrusted", + "ring 0.16.20", + "untrusted 0.7.1", ] [[package]] @@ -4873,6 +5328,12 @@ dependencies = [ "webpki", ] +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + [[package]] name = "weezl" version = "0.1.7" @@ -5107,6 +5568,32 @@ dependencies = [ "is-terminal", ] +[[package]] +name = "zerocopy" +version = "0.7.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.32", +] + +[[package]] +name = "zeroize" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" + [[package]] name = "zoomies" version = "0.1.0" diff --git a/pgml-dashboard/Cargo.toml b/pgml-dashboard/Cargo.toml index b1bb93f06..19231db8b 100644 --- a/pgml-dashboard/Cargo.toml +++ b/pgml-dashboard/Cargo.toml @@ -31,7 +31,7 @@ num-traits = "0.2" once_cell = "1.18" pgml = { path = "../pgml-sdks/pgml/" } pgml-components = { path = "../packages/pgml-components" } -pgvector = { version = "0.2.2", features = [ "sqlx", "postgres" ] } +pgvector = { version = "0.3", features = [ "sqlx", "postgres" ] } rand = "0.8" regex = "1.9" reqwest = { version = "0.11", features = ["json"] } @@ -43,7 +43,7 @@ sentry = "0.31" sentry-log = "0.31" sentry-anyhow = "0.31" serde_json = "1" -sqlx = { version = "0.6.3", features = [ "runtime-tokio-rustls", "postgres", "json", "migrate", "time", "uuid", "bigdecimal", "offline"] } +sqlx = { version = "0.7.3", features = [ "runtime-tokio-rustls", "postgres", "json", "migrate", "time", "uuid", "bigdecimal"] } tantivy = "0.19" time = "0.3" tokio = { version = "1", features = ["full"] } diff --git a/pgml-dashboard/src/lib.rs b/pgml-dashboard/src/lib.rs index 3149be444..c8a73dd38 100644 --- a/pgml-dashboard/src/lib.rs +++ b/pgml-dashboard/src/lib.rs @@ -265,8 +265,8 @@ pub async fn notebook_reorder( // Super bad n+1, but it's ok for now? for (idx, cell_id) in cells.cells.iter().enumerate() { - let cell = models::Cell::get_by_id(&mut transaction, *cell_id).await?; - cell.reorder(&mut transaction, idx as i32 + 1).await?; + let cell = models::Cell::get_by_id(&mut *transaction, *cell_id).await?; + cell.reorder(&mut *transaction, idx as i32 + 1).await?; } transaction.commit().await?; From fc03808096878163d6bebd77deb82bd4b20aecfe Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Mon, 5 Feb 2024 13:35:52 -0800 Subject: [PATCH 2/2] upgrade sqlx cli --- ...f8b7774aad3cdff4121e50aa3fcb11bcc85ec.json | 40 + ...8f31802115f1f3981776ea6de96a0292a7973.json | 71 + ...bf1534d74801636954d0c2e04943225de4d19.json | 40 + ...a1c58e1fade97e72502f7931737ea0a724ad4.json | 72 + ...4bbb7c388a3badef93153077ba41abc0b3543.json | 40 + ...d838d040f4c66c3f708b5b2523288dd955d33.json | 88 ++ ...43dc54b1c1ecff40d09dcf546c55318dabc06.json | 86 ++ ...53ef2b687a0053ec12dc3126e60ed7c426bbf.json | 70 + ...998a0dbc092ed1ccebf72b4a5fe60a0f90e8a.json | 38 + ...eae28b0bf882e7f56f5edb47cc56b6a80beee.json | 38 + ...778645f8cd748e5e0c2ec392208dac6755622.json | 100 ++ ...1f6fd94da94c6ff19acc6c144bbe46b9b902b.json | 52 + ...926cdebe86b0498a0bd2f6338c05c94dd969d.json | 16 + ...366b5e9ca9655a1de7b194b5e89e2b37f0d28.json | 70 + ...470b790b475646eb13f88275baccef83deac8.json | 70 + ...955b63a94befd6bfabb209b3f8c477ec1170f.json | 100 ++ ...def255b251c216de7ab2d3864fed1d1e55b5a.json | 16 + ...06e69eace7754291d1c855da059181bd8b14e.json | 15 + ...33351c7d792ee69a4a90ce26d61448e031520.json | 52 + ...3a260201c16f9bfacfc9bbe05292c292894a2.json | 100 ++ ...199d88bf0fc739ca2e2510ee9f6178b12e80a.json | 23 + ...bdd10282de6c8a5e6ae739f377a883af4a3f2.json | 26 + pgml-dashboard/Cargo.lock | 36 +- pgml-dashboard/sqlx-data.json | 1181 +---------------- 24 files changed, 1243 insertions(+), 1197 deletions(-) create mode 100644 pgml-dashboard/.sqlx/query-0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec.json create mode 100644 pgml-dashboard/.sqlx/query-23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973.json create mode 100644 pgml-dashboard/.sqlx/query-287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19.json create mode 100644 pgml-dashboard/.sqlx/query-3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4.json create mode 100644 pgml-dashboard/.sqlx/query-5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543.json create mode 100644 pgml-dashboard/.sqlx/query-568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33.json create mode 100644 pgml-dashboard/.sqlx/query-5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06.json create mode 100644 pgml-dashboard/.sqlx/query-6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf.json create mode 100644 pgml-dashboard/.sqlx/query-65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a.json create mode 100644 pgml-dashboard/.sqlx/query-66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee.json create mode 100644 pgml-dashboard/.sqlx/query-7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622.json create mode 100644 pgml-dashboard/.sqlx/query-7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b.json create mode 100644 pgml-dashboard/.sqlx/query-7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d.json create mode 100644 pgml-dashboard/.sqlx/query-88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28.json create mode 100644 pgml-dashboard/.sqlx/query-8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8.json create mode 100644 pgml-dashboard/.sqlx/query-96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f.json create mode 100644 pgml-dashboard/.sqlx/query-c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a.json create mode 100644 pgml-dashboard/.sqlx/query-c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e.json create mode 100644 pgml-dashboard/.sqlx/query-c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520.json create mode 100644 pgml-dashboard/.sqlx/query-da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2.json create mode 100644 pgml-dashboard/.sqlx/query-f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a.json create mode 100644 pgml-dashboard/.sqlx/query-f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2.json diff --git a/pgml-dashboard/.sqlx/query-0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec.json b/pgml-dashboard/.sqlx/query-0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec.json new file mode 100644 index 000000000..cfcac0a06 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT * FROM pgml.notebooks WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec" +} diff --git a/pgml-dashboard/.sqlx/query-23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973.json b/pgml-dashboard/.sqlx/query-23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973.json new file mode 100644 index 000000000..28f39d207 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973.json @@ -0,0 +1,71 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE pgml.notebook_cells\n SET cell_number = $1\n WHERE id = $2\n RETURNING *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "notebook_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "cell_type", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "cell_number", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "version", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "contents", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "rendering", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "execution_time", + "type_info": "Interval" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true + ] + }, + "hash": "23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973" +} diff --git a/pgml-dashboard/.sqlx/query-287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19.json b/pgml-dashboard/.sqlx/query-287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19.json new file mode 100644 index 000000000..ef45cd46a --- /dev/null +++ b/pgml-dashboard/.sqlx/query-287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO pgml.notebooks (name) VALUES ($1) RETURNING *", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Varchar" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19" +} diff --git a/pgml-dashboard/.sqlx/query-3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4.json b/pgml-dashboard/.sqlx/query-3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4.json new file mode 100644 index 000000000..4f9e6c602 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4.json @@ -0,0 +1,72 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n lock AS (\n SELECT * FROM pgml.notebooks WHERE id = $1 FOR UPDATE\n ),\n max_cell AS (\n SELECT COALESCE(MAX(cell_number), 0) AS cell_number\n FROM pgml.notebook_cells\n WHERE notebook_id = $1\n AND deleted_at IS NULL\n )\n INSERT INTO pgml.notebook_cells\n (notebook_id, cell_type, contents, cell_number, version)\n VALUES\n ($1, $2, $3, (SELECT cell_number + 1 FROM max_cell), 1)\n RETURNING id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "notebook_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "cell_type", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "contents", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "rendering", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "execution_time", + "type_info": "Interval" + }, + { + "ordinal": 6, + "name": "cell_number", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "version", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int4", + "Text" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + false, + false, + true + ] + }, + "hash": "3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4" +} diff --git a/pgml-dashboard/.sqlx/query-5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543.json b/pgml-dashboard/.sqlx/query-5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543.json new file mode 100644 index 000000000..354e71e67 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n name,\n task::text,\n created_at\n FROM pgml.projects\n WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "task", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543" +} diff --git a/pgml-dashboard/.sqlx/query-568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33.json b/pgml-dashboard/.sqlx/query-568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33.json new file mode 100644 index 000000000..7b7065fa0 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id,\n relation_name,\n y_column_name,\n test_size,\n test_sampling::TEXT,\n status,\n columns,\n analysis,\n created_at,\n updated_at,\n CASE \n WHEN EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) THEN pg_size_pretty(pg_total_relation_size(relation_name::regclass))\n ELSE '0 Bytes'\n END AS \"table_size!\", \n EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) AS \"exists!\"\n FROM pgml.snapshots WHERE id = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "relation_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "y_column_name", + "type_info": "TextArray" + }, + { + "ordinal": 3, + "name": "test_size", + "type_info": "Float4" + }, + { + "ordinal": 4, + "name": "test_sampling", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "columns", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "analysis", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "table_size!", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + null, + false, + true, + true, + false, + false, + null, + null + ] + }, + "hash": "568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33" +} diff --git a/pgml-dashboard/.sqlx/query-5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06.json b/pgml-dashboard/.sqlx/query-5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06.json new file mode 100644 index 000000000..35940172b --- /dev/null +++ b/pgml-dashboard/.sqlx/query-5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06.json @@ -0,0 +1,86 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id,\n relation_name,\n y_column_name,\n test_size,\n test_sampling::TEXT,\n status,\n columns,\n analysis,\n created_at,\n updated_at,\n CASE \n WHEN EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) THEN pg_size_pretty(pg_total_relation_size(relation_name::regclass))\n ELSE '0 Bytes'\n END AS \"table_size!\", \n EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) AS \"exists!\"\n FROM pgml.snapshots\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "relation_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "y_column_name", + "type_info": "TextArray" + }, + { + "ordinal": 3, + "name": "test_size", + "type_info": "Float4" + }, + { + "ordinal": 4, + "name": "test_sampling", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "columns", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "analysis", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "table_size!", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "exists!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + true, + false, + null, + false, + true, + true, + false, + false, + null, + null + ] + }, + "hash": "5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06" +} diff --git a/pgml-dashboard/.sqlx/query-6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf.json b/pgml-dashboard/.sqlx/query-6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf.json new file mode 100644 index 000000000..b9c689a6e --- /dev/null +++ b/pgml-dashboard/.sqlx/query-6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT * FROM pgml.notebook_cells\n WHERE notebook_id = $1\n AND deleted_at IS NULL\n ORDER BY cell_number", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "notebook_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "cell_type", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "cell_number", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "version", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "contents", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "rendering", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "execution_time", + "type_info": "Interval" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true + ] + }, + "hash": "6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf" +} diff --git a/pgml-dashboard/.sqlx/query-65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a.json b/pgml-dashboard/.sqlx/query-65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a.json new file mode 100644 index 000000000..7f43da24d --- /dev/null +++ b/pgml-dashboard/.sqlx/query-65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT * FROM pgml.notebooks", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 3, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a" +} diff --git a/pgml-dashboard/.sqlx/query-66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee.json b/pgml-dashboard/.sqlx/query-66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee.json new file mode 100644 index 000000000..c6eb60320 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee.json @@ -0,0 +1,38 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n name,\n task::TEXT,\n created_at\n FROM pgml.projects\n WHERE task::text != 'embedding'\n ORDER BY id DESC", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "task", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + null, + false + ] + }, + "hash": "66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee" +} diff --git a/pgml-dashboard/.sqlx/query-7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622.json b/pgml-dashboard/.sqlx/query-7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622.json new file mode 100644 index 000000000..1bddea324 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE snapshot_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "project_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "snapshot_id", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "num_features", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "algorithm", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "runtime", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "hyperparams", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "metrics", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "search", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "search_params", + "type_info": "Jsonb" + }, + { + "ordinal": 11, + "name": "search_args", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + null, + false, + false, + true, + true, + false, + false, + false, + false + ] + }, + "hash": "7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622" +} diff --git a/pgml-dashboard/.sqlx/query-7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b.json b/pgml-dashboard/.sqlx/query-7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b.json new file mode 100644 index 000000000..ccc00b08b --- /dev/null +++ b/pgml-dashboard/.sqlx/query-7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n a.id,\n project_id,\n model_id,\n strategy::TEXT,\n created_at,\n a.id = last_deployment.id AS active\n FROM pgml.deployments a\n CROSS JOIN LATERAL (\n SELECT id FROM pgml.deployments b\n WHERE b.project_id = a.project_id\n ORDER BY b.id DESC\n LIMIT 1\n ) last_deployment\n WHERE project_id = $1\n ORDER BY a.id DESC", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "project_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "model_id", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "strategy", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "active", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + false, + null + ] + }, + "hash": "7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b" +} diff --git a/pgml-dashboard/.sqlx/query-7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d.json b/pgml-dashboard/.sqlx/query-7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d.json new file mode 100644 index 000000000..164f8c50d --- /dev/null +++ b/pgml-dashboard/.sqlx/query-7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE pgml.notebook_cells SET rendering = $1, execution_time = $2 WHERE id = $3", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Interval", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d" +} diff --git a/pgml-dashboard/.sqlx/query-88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28.json b/pgml-dashboard/.sqlx/query-88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28.json new file mode 100644 index 000000000..57bc1156e --- /dev/null +++ b/pgml-dashboard/.sqlx/query-88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE pgml.notebook_cells\n SET deleted_at = NOW()\n WHERE id = $1\n RETURNING id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "notebook_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "cell_type", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "contents", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "rendering", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "execution_time", + "type_info": "Interval" + }, + { + "ordinal": 6, + "name": "cell_number", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "version", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + false, + false, + true + ] + }, + "hash": "88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28" +} diff --git a/pgml-dashboard/.sqlx/query-8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8.json b/pgml-dashboard/.sqlx/query-8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8.json new file mode 100644 index 000000000..216195d50 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8.json @@ -0,0 +1,70 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at\n FROM pgml.notebook_cells\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "notebook_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "cell_type", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "contents", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "rendering", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "execution_time", + "type_info": "Interval" + }, + { + "ordinal": 6, + "name": "cell_number", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "version", + "type_info": "Int4" + }, + { + "ordinal": 8, + "name": "deleted_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + true, + false, + false, + true + ] + }, + "hash": "8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8" +} diff --git a/pgml-dashboard/.sqlx/query-96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f.json b/pgml-dashboard/.sqlx/query-96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f.json new file mode 100644 index 000000000..4d33e4e0c --- /dev/null +++ b/pgml-dashboard/.sqlx/query-96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE project_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "project_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "snapshot_id", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "num_features", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "algorithm", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "runtime", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "hyperparams", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "metrics", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "search", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "search_params", + "type_info": "Jsonb" + }, + { + "ordinal": 11, + "name": "search_args", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + null, + false, + false, + true, + true, + false, + false, + false, + false + ] + }, + "hash": "96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f" +} diff --git a/pgml-dashboard/.sqlx/query-c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a.json b/pgml-dashboard/.sqlx/query-c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a.json new file mode 100644 index 000000000..c2009ecde --- /dev/null +++ b/pgml-dashboard/.sqlx/query-c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE pgml.notebook_cells\n SET\n cell_type = $1,\n contents = $2,\n version = version + 1\n WHERE id = $3", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a" +} diff --git a/pgml-dashboard/.sqlx/query-c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e.json b/pgml-dashboard/.sqlx/query-c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e.json new file mode 100644 index 000000000..d3ce79e4c --- /dev/null +++ b/pgml-dashboard/.sqlx/query-c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE pgml.notebook_cells\n SET\n execution_time = NULL,\n rendering = NULL\n WHERE notebook_id = $1\n AND cell_type = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e" +} diff --git a/pgml-dashboard/.sqlx/query-c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520.json b/pgml-dashboard/.sqlx/query-c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520.json new file mode 100644 index 000000000..cf1fe2c1d --- /dev/null +++ b/pgml-dashboard/.sqlx/query-c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n a.id,\n project_id,\n model_id,\n strategy::TEXT,\n created_at,\n a.id = last_deployment.id AS active\n FROM pgml.deployments a\n CROSS JOIN LATERAL (\n SELECT id FROM pgml.deployments b\n WHERE b.project_id = a.project_id\n ORDER BY b.id DESC\n LIMIT 1\n ) last_deployment\n WHERE a.id = $1\n ORDER BY a.id DESC", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "project_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "model_id", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "strategy", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "active", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + null, + false, + null + ] + }, + "hash": "c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520" +} diff --git a/pgml-dashboard/.sqlx/query-da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2.json b/pgml-dashboard/.sqlx/query-da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2.json new file mode 100644 index 000000000..b039fd3ac --- /dev/null +++ b/pgml-dashboard/.sqlx/query-da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "project_id", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "snapshot_id", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "num_features", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "algorithm", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "runtime", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "hyperparams", + "type_info": "Jsonb" + }, + { + "ordinal": 7, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "metrics", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "search", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "search_params", + "type_info": "Jsonb" + }, + { + "ordinal": 11, + "name": "search_args", + "type_info": "Jsonb" + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + false, + false, + null, + false, + false, + true, + true, + false, + false, + false, + false + ] + }, + "hash": "da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2" +} diff --git a/pgml-dashboard/.sqlx/query-f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a.json b/pgml-dashboard/.sqlx/query-f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a.json new file mode 100644 index 000000000..6e7de06a3 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n (model_id = $1) AS deployed\n FROM pgml.deployments\n WHERE project_id = $2\n ORDER BY created_at DESC\n LIMIT 1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "deployed", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + null + ] + }, + "hash": "f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a" +} diff --git a/pgml-dashboard/.sqlx/query-f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2.json b/pgml-dashboard/.sqlx/query-f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2.json new file mode 100644 index 000000000..45be552b9 --- /dev/null +++ b/pgml-dashboard/.sqlx/query-f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2.json @@ -0,0 +1,26 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO pgml.uploaded_files (id, created_at) VALUES (DEFAULT, DEFAULT)\n RETURNING id, created_at", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false + ] + }, + "hash": "f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2" +} diff --git a/pgml-dashboard/Cargo.lock b/pgml-dashboard/Cargo.lock index f81cae953..f633d6673 100644 --- a/pgml-dashboard/Cargo.lock +++ b/pgml-dashboard/Cargo.lock @@ -798,7 +798,7 @@ dependencies = [ "cssparser-macros", "dtoa-short", "itoa", - "phf 0.10.1", + "phf 0.11.2", "smallvec", ] @@ -2711,9 +2711,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_macros", "phf_shared 0.10.0", - "proc-macro-hack", ] [[package]] @@ -2722,6 +2720,7 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ + "phf_macros", "phf_shared 0.11.2", ] @@ -2731,7 +2730,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ - "phf_generator", + "phf_generator 0.10.0", "phf_shared 0.10.0", ] @@ -2745,18 +2744,27 @@ dependencies = [ "rand", ] +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared 0.11.2", + "rand", +] + [[package]] name = "phf_macros" -version = "0.10.0" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" +checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" dependencies = [ - "phf_generator", - "phf_shared 0.10.0", - "proc-macro-hack", + "phf_generator 0.11.2", + "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.32", ] [[package]] @@ -2929,12 +2937,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" -[[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" - [[package]] name = "proc-macro2" version = "1.0.66" @@ -4381,7 +4383,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator", + "phf_generator 0.10.0", "phf_shared 0.10.0", "proc-macro2", "quote", diff --git a/pgml-dashboard/sqlx-data.json b/pgml-dashboard/sqlx-data.json index 017d12ba9..95c8c858b 100644 --- a/pgml-dashboard/sqlx-data.json +++ b/pgml-dashboard/sqlx-data.json @@ -1,1182 +1,3 @@ { - "db": "PostgreSQL", - "0d11d20294c9ccf5c25fcfc0d07f8b7774aad3cdff4121e50aa3fcb11bcc85ec": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT * FROM pgml.notebooks WHERE id = $1" - }, - "23498954ab1fc5d9195509f1e048f31802115f1f3981776ea6de96a0292a7973": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "notebook_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "cell_type", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "cell_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "version", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "contents", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "rendering", - "ordinal": 6, - "type_info": "Text" - }, - { - "name": "execution_time", - "ordinal": 7, - "type_info": "Interval" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true - ], - "parameters": { - "Left": [ - "Int4", - "Int8" - ] - } - }, - "query": "\n UPDATE pgml.notebook_cells\n SET cell_number = $1\n WHERE id = $2\n RETURNING *\n " - }, - "287957935aa0f5468d34153df78bf1534d74801636954d0c2e04943225de4d19": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Varchar" - ] - } - }, - "query": "INSERT INTO pgml.notebooks (name) VALUES ($1) RETURNING *" - }, - "3c404506ab6aaaa692b5fab0cd3a1c58e1fade97e72502f7931737ea0a724ad4": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "notebook_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "cell_type", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "contents", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "rendering", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "execution_time", - "ordinal": 5, - "type_info": "Interval" - }, - { - "name": "cell_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "version", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - true - ], - "parameters": { - "Left": [ - "Int8", - "Int4", - "Text" - ] - } - }, - "query": "\n WITH\n lock AS (\n SELECT * FROM pgml.notebooks WHERE id = $1 FOR UPDATE\n ),\n max_cell AS (\n SELECT COALESCE(MAX(cell_number), 0) AS cell_number\n FROM pgml.notebook_cells\n WHERE notebook_id = $1\n AND deleted_at IS NULL\n )\n INSERT INTO pgml.notebook_cells\n (notebook_id, cell_type, contents, cell_number, version)\n VALUES\n ($1, $2, $3, (SELECT cell_number + 1 FROM max_cell), 1)\n RETURNING id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at" - }, - "5200e99503a6d5fc51cd1a3dee54bbb7c388a3badef93153077ba41abc0b3543": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "task", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - null, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n id,\n name,\n task::text,\n created_at\n FROM pgml.projects\n WHERE id = $1" - }, - "568dd47e8e95d61535f9868364ad838d040f4c66c3f708b5b2523288dd955d33": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "relation_name", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "y_column_name", - "ordinal": 2, - "type_info": "TextArray" - }, - { - "name": "test_size", - "ordinal": 3, - "type_info": "Float4" - }, - { - "name": "test_sampling", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "status", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "columns", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "analysis", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 8, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "table_size!", - "ordinal": 10, - "type_info": "Text" - }, - { - "name": "exists!", - "ordinal": 11, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - true, - false, - null, - false, - true, - true, - false, - false, - null, - null - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT id,\n relation_name,\n y_column_name,\n test_size,\n test_sampling::TEXT,\n status,\n columns,\n analysis,\n created_at,\n updated_at,\n CASE \n WHEN EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) THEN pg_size_pretty(pg_total_relation_size(relation_name::regclass))\n ELSE '0 Bytes'\n END AS \"table_size!\", \n EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) AS \"exists!\"\n FROM pgml.snapshots WHERE id = $1" - }, - "5c3448b2e6a63806b42a839a58043dc54b1c1ecff40d09dcf546c55318dabc06": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "relation_name", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "y_column_name", - "ordinal": 2, - "type_info": "TextArray" - }, - { - "name": "test_size", - "ordinal": 3, - "type_info": "Float4" - }, - { - "name": "test_sampling", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "status", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "columns", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "analysis", - "ordinal": 7, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 8, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 9, - "type_info": "Timestamp" - }, - { - "name": "table_size!", - "ordinal": 10, - "type_info": "Text" - }, - { - "name": "exists!", - "ordinal": 11, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - true, - false, - null, - false, - true, - true, - false, - false, - null, - null - ], - "parameters": { - "Left": [] - } - }, - "query": "SELECT id,\n relation_name,\n y_column_name,\n test_size,\n test_sampling::TEXT,\n status,\n columns,\n analysis,\n created_at,\n updated_at,\n CASE \n WHEN EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) THEN pg_size_pretty(pg_total_relation_size(relation_name::regclass))\n ELSE '0 Bytes'\n END AS \"table_size!\", \n EXISTS (\n SELECT 1\n FROM pg_class c\n WHERE c.oid::regclass::text = relation_name\n ) AS \"exists!\"\n FROM pgml.snapshots\n " - }, - "6126dede26b7c52381abf75b42853ef2b687a0053ec12dc3126e60ed7c426bbf": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "notebook_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "cell_type", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "cell_number", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "version", - "ordinal": 4, - "type_info": "Int4" - }, - { - "name": "contents", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "rendering", - "ordinal": 6, - "type_info": "Text" - }, - { - "name": "execution_time", - "ordinal": 7, - "type_info": "Interval" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT * FROM pgml.notebook_cells\n WHERE notebook_id = $1\n AND deleted_at IS NULL\n ORDER BY cell_number" - }, - "65e865b0a1c2a69aea8d508a3ad998a0dbc092ed1ccebf72b4a5fe60a0f90e8a": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Varchar" - }, - { - "name": "created_at", - "ordinal": 2, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false - ], - "parameters": { - "Left": [] - } - }, - "query": "SELECT * FROM pgml.notebooks" - }, - "66f62d3857807d6ae0baa2301e7eae28b0bf882e7f56f5edb47cc56b6a80beee": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "name", - "ordinal": 1, - "type_info": "Text" - }, - { - "name": "task", - "ordinal": 2, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 3, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - null, - false - ], - "parameters": { - "Left": [] - } - }, - "query": "SELECT\n id,\n name,\n task::TEXT,\n created_at\n FROM pgml.projects\n WHERE task::text != 'embedding'\n ORDER BY id DESC" - }, - "7095e7b76e23fa7af3ab2cacc42778645f8cd748e5e0c2ec392208dac6755622": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "project_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "snapshot_id", - "ordinal": 2, - "type_info": "Int8" - }, - { - "name": "num_features", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "algorithm", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "runtime", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "hyperparams", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "status", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "metrics", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "search", - "ordinal": 9, - "type_info": "Text" - }, - { - "name": "search_params", - "ordinal": 10, - "type_info": "Jsonb" - }, - { - "name": "search_args", - "ordinal": 11, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 12, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 13, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - true, - false, - false, - null, - false, - false, - true, - true, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE snapshot_id = $1\n " - }, - "7285e17ea8ee359929b9df1e6631f6fd94da94c6ff19acc6c144bbe46b9b902b": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "project_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "model_id", - "ordinal": 2, - "type_info": "Int8" - }, - { - "name": "strategy", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "active", - "ordinal": 5, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - null, - false, - null - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n a.id,\n project_id,\n model_id,\n strategy::TEXT,\n created_at,\n a.id = last_deployment.id AS active\n FROM pgml.deployments a\n CROSS JOIN LATERAL (\n SELECT id FROM pgml.deployments b\n WHERE b.project_id = a.project_id\n ORDER BY b.id DESC\n LIMIT 1\n ) last_deployment\n WHERE project_id = $1\n ORDER BY a.id DESC" - }, - "7bfa0515e05b1d522ba153a95df926cdebe86b0498a0bd2f6338c05c94dd969d": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Text", - "Interval", - "Int8" - ] - } - }, - "query": "UPDATE pgml.notebook_cells SET rendering = $1, execution_time = $2 WHERE id = $3" - }, - "88cb8f2a0394f0bc19ad6910cc1366b5e9ca9655a1de7b194b5e89e2b37f0d28": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "notebook_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "cell_type", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "contents", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "rendering", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "execution_time", - "ordinal": 5, - "type_info": "Interval" - }, - { - "name": "cell_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "version", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - true - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "UPDATE pgml.notebook_cells\n SET deleted_at = NOW()\n WHERE id = $1\n RETURNING id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at" - }, - "8a5f6907456832e1db64bff6692470b790b475646eb13f88275baccef83deac8": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "notebook_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "cell_type", - "ordinal": 2, - "type_info": "Int4" - }, - { - "name": "contents", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "rendering", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "execution_time", - "ordinal": 5, - "type_info": "Interval" - }, - { - "name": "cell_number", - "ordinal": 6, - "type_info": "Int4" - }, - { - "name": "version", - "ordinal": 7, - "type_info": "Int4" - }, - { - "name": "deleted_at", - "ordinal": 8, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - false, - false, - true, - true, - false, - false, - true - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n id,\n notebook_id,\n cell_type,\n contents,\n rendering,\n execution_time,\n cell_number,\n version,\n deleted_at\n FROM pgml.notebook_cells\n WHERE id = $1\n " - }, - "96ba78cf2502167ee92b77f34c8955b63a94befd6bfabb209b3f8c477ec1170f": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "project_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "snapshot_id", - "ordinal": 2, - "type_info": "Int8" - }, - { - "name": "num_features", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "algorithm", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "runtime", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "hyperparams", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "status", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "metrics", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "search", - "ordinal": 9, - "type_info": "Text" - }, - { - "name": "search_params", - "ordinal": 10, - "type_info": "Jsonb" - }, - { - "name": "search_args", - "ordinal": 11, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 12, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 13, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - true, - false, - false, - null, - false, - false, - true, - true, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE project_id = $1\n " - }, - "c0311e3d7f3e4a2d8d7b14de300def255b251c216de7ab2d3864fed1d1e55b5a": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int4", - "Text", - "Int8" - ] - } - }, - "query": "UPDATE pgml.notebook_cells\n SET\n cell_type = $1,\n contents = $2,\n version = version + 1\n WHERE id = $3" - }, - "c5eaa1c003a32a2049545204ccd06e69eace7754291d1c855da059181bd8b14e": { - "describe": { - "columns": [], - "nullable": [], - "parameters": { - "Left": [ - "Int8", - "Int4" - ] - } - }, - "query": "UPDATE pgml.notebook_cells\n SET\n execution_time = NULL,\n rendering = NULL\n WHERE notebook_id = $1\n AND cell_type = $2" - }, - "c5faa3dc630e649d97e10720dbc33351c7d792ee69a4a90ce26d61448e031520": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "project_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "model_id", - "ordinal": 2, - "type_info": "Int8" - }, - { - "name": "strategy", - "ordinal": 3, - "type_info": "Text" - }, - { - "name": "created_at", - "ordinal": 4, - "type_info": "Timestamp" - }, - { - "name": "active", - "ordinal": 5, - "type_info": "Bool" - } - ], - "nullable": [ - false, - false, - false, - null, - false, - null - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n a.id,\n project_id,\n model_id,\n strategy::TEXT,\n created_at,\n a.id = last_deployment.id AS active\n FROM pgml.deployments a\n CROSS JOIN LATERAL (\n SELECT id FROM pgml.deployments b\n WHERE b.project_id = a.project_id\n ORDER BY b.id DESC\n LIMIT 1\n ) last_deployment\n WHERE a.id = $1\n ORDER BY a.id DESC" - }, - "da28d578e5935c65851410fbb4e3a260201c16f9bfacfc9bbe05292c292894a2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "project_id", - "ordinal": 1, - "type_info": "Int8" - }, - { - "name": "snapshot_id", - "ordinal": 2, - "type_info": "Int8" - }, - { - "name": "num_features", - "ordinal": 3, - "type_info": "Int4" - }, - { - "name": "algorithm", - "ordinal": 4, - "type_info": "Text" - }, - { - "name": "runtime", - "ordinal": 5, - "type_info": "Text" - }, - { - "name": "hyperparams", - "ordinal": 6, - "type_info": "Jsonb" - }, - { - "name": "status", - "ordinal": 7, - "type_info": "Text" - }, - { - "name": "metrics", - "ordinal": 8, - "type_info": "Jsonb" - }, - { - "name": "search", - "ordinal": 9, - "type_info": "Text" - }, - { - "name": "search_params", - "ordinal": 10, - "type_info": "Jsonb" - }, - { - "name": "search_args", - "ordinal": 11, - "type_info": "Jsonb" - }, - { - "name": "created_at", - "ordinal": 12, - "type_info": "Timestamp" - }, - { - "name": "updated_at", - "ordinal": 13, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false, - true, - false, - false, - null, - false, - false, - true, - true, - false, - false, - false, - false - ], - "parameters": { - "Left": [ - "Int8" - ] - } - }, - "query": "SELECT\n id,\n project_id,\n snapshot_id,\n num_features,\n algorithm,\n runtime::TEXT,\n hyperparams,\n status,\n metrics,\n search,\n search_params,\n search_args,\n created_at,\n updated_at\n FROM pgml.models\n WHERE id = $1\n " - }, - "f1a0941049c71bee1ea74ede2e3199d88bf0fc739ca2e2510ee9f6178b12e80a": { - "describe": { - "columns": [ - { - "name": "deployed", - "ordinal": 0, - "type_info": "Bool" - } - ], - "nullable": [ - null - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - } - }, - "query": "SELECT\n (model_id = $1) AS deployed\n FROM pgml.deployments\n WHERE project_id = $2\n ORDER BY created_at DESC\n LIMIT 1" - }, - "f7f320a3fe2a569d64dbb0fe806bdd10282de6c8a5e6ae739f377a883af4a3f2": { - "describe": { - "columns": [ - { - "name": "id", - "ordinal": 0, - "type_info": "Int8" - }, - { - "name": "created_at", - "ordinal": 1, - "type_info": "Timestamp" - } - ], - "nullable": [ - false, - false - ], - "parameters": { - "Left": [] - } - }, - "query": "INSERT INTO pgml.uploaded_files (id, created_at) VALUES (DEFAULT, DEFAULT)\n RETURNING id, created_at" - } + "db": "PostgreSQL" } \ No newline at end of file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy