Merge pull request #5795 from nymtech/am/update-sqlx-0.8.6

Update to sqlx 0.8.6
This commit is contained in:
Andrej Mihajlov
2025-06-02 13:23:09 +02:00
committed by GitHub
120 changed files with 419 additions and 492 deletions
Generated
+48 -61
View File
@@ -96,7 +96,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
dependencies = [
"cfg-if",
"getrandom 0.2.15",
"once_cell",
"version_check",
"zerocopy 0.7.35",
@@ -2679,6 +2678,12 @@ version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "foldhash"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
[[package]]
name = "form_urlencoded"
version = "1.2.1"
@@ -3121,14 +3126,19 @@ name = "hashbrown"
version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
dependencies = [
"allocator-api2",
"equivalent",
"foldhash",
]
[[package]]
name = "hashlink"
version = "0.8.4"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7"
checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
dependencies = [
"hashbrown 0.14.5",
"hashbrown 0.15.2",
]
[[package]]
@@ -3182,9 +3192,6 @@ name = "heck"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "heck"
@@ -4162,9 +4169,9 @@ dependencies = [
[[package]]
name = "libsqlite3-sys"
version = "0.27.0"
version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716"
checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149"
dependencies = [
"cc",
"pkg-config",
@@ -9298,6 +9305,9 @@ name = "smallvec"
version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd"
dependencies = [
"serde",
]
[[package]]
name = "smawk"
@@ -9382,21 +9392,11 @@ dependencies = [
"der",
]
[[package]]
name = "sqlformat"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7bba3a93db0cc4f7bdece8bb09e77e2e785c20bfebf79eb8340ed80708048790"
dependencies = [
"nom",
"unicode_categories",
]
[[package]]
name = "sqlx"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9a2ccff1a000a5a59cd33da541d9f2fdcd9e6e8229cc200565942bff36d0aaa"
checksum = "1fefb893899429669dcdd979aff487bd78f4064e5e7907e4269081e0ef7d97dc"
dependencies = [
"sqlx-core",
"sqlx-macros",
@@ -9407,70 +9407,64 @@ dependencies = [
[[package]]
name = "sqlx-core"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24ba59a9342a3d9bab6c56c118be528b27c9b60e490080e9711a04dccac83ef6"
checksum = "ee6798b1838b6a0f69c007c133b8df5866302197e404e8b6ee8ed3e3a5e68dc6"
dependencies = [
"ahash",
"atoi",
"byteorder",
"base64 0.22.1",
"bytes",
"chrono",
"crc",
"crossbeam-queue",
"either",
"event-listener 2.5.3",
"futures-channel",
"event-listener 5.4.0",
"futures-core",
"futures-intrusive",
"futures-io",
"futures-util",
"hashbrown 0.15.2",
"hashlink",
"hex",
"indexmap 2.7.1",
"log",
"memchr",
"once_cell",
"paste",
"percent-encoding",
"rustls 0.21.12",
"rustls-pemfile 1.0.4",
"rustls 0.23.25",
"serde",
"serde_json",
"sha2 0.10.9",
"smallvec",
"sqlformat",
"thiserror 1.0.69",
"thiserror 2.0.12",
"time",
"tokio",
"tokio-stream",
"tracing",
"url",
"webpki-roots 0.25.4",
"webpki-roots 0.26.8",
]
[[package]]
name = "sqlx-macros"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ea40e2345eb2faa9e1e5e326db8c34711317d2b5e08d0d5741619048a803127"
checksum = "a2d452988ccaacfbf5e0bdbc348fb91d7c8af5bee192173ac3636b5fb6e6715d"
dependencies = [
"proc-macro2",
"quote",
"sqlx-core",
"sqlx-macros-core",
"syn 1.0.109",
"syn 2.0.98",
]
[[package]]
name = "sqlx-macros-core"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5833ef53aaa16d860e92123292f1f6a3d53c34ba8b1969f152ef1a7bb803f3c8"
checksum = "19a9c1841124ac5a61741f96e1d9e2ec77424bf323962dd894bdb93f37d5219b"
dependencies = [
"dotenvy",
"either",
"heck 0.4.1",
"heck 0.5.0",
"hex",
"once_cell",
"proc-macro2",
@@ -9482,20 +9476,19 @@ dependencies = [
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
"syn 1.0.109",
"tempfile",
"syn 2.0.98",
"tokio",
"url",
]
[[package]]
name = "sqlx-mysql"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ed31390216d20e538e447a7a9b959e06ed9fc51c37b514b46eb758016ecd418"
checksum = "aa003f0038df784eb8fecbbac13affe3da23b45194bd57dba231c8f48199c526"
dependencies = [
"atoi",
"base64 0.21.7",
"base64 0.22.1",
"bitflags 2.8.0",
"byteorder",
"bytes",
@@ -9526,7 +9519,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
"thiserror 2.0.12",
"time",
"tracing",
"whoami",
@@ -9534,12 +9527,12 @@ dependencies = [
[[package]]
name = "sqlx-postgres"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c824eb80b894f926f89a0b9da0c7f435d27cdd35b8c655b114e58223918577e"
checksum = "db58fcd5a53cf07c184b154801ff91347e4c30d17a3562a635ff028ad5deda46"
dependencies = [
"atoi",
"base64 0.21.7",
"base64 0.22.1",
"bitflags 2.8.0",
"byteorder",
"chrono",
@@ -9548,7 +9541,6 @@ dependencies = [
"etcetera",
"futures-channel",
"futures-core",
"futures-io",
"futures-util",
"hex",
"hkdf",
@@ -9566,7 +9558,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
"thiserror 2.0.12",
"time",
"tracing",
"whoami",
@@ -9574,9 +9566,9 @@ dependencies = [
[[package]]
name = "sqlx-sqlite"
version = "0.7.4"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b244ef0a8414da0bed4bb1910426e890b19e5e9bccc27ada6b797d05c55ae0aa"
checksum = "c2d12fe70b2c1b4401038055f90f151b78208de1f9f89a7dbfd41587a10c3eea"
dependencies = [
"atoi",
"chrono",
@@ -9590,11 +9582,12 @@ dependencies = [
"log",
"percent-encoding",
"serde",
"serde_urlencoded",
"sqlx-core",
"thiserror 2.0.12",
"time",
"tracing",
"url",
"urlencoding",
]
[[package]]
@@ -10814,12 +10807,6 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "unicode_categories"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
[[package]]
name = "uniffi"
version = "0.29.2"
+5 -3
View File
@@ -33,7 +33,8 @@ members = [
"common/commands",
"common/config",
"common/cosmwasm-smart-contracts/coconut-dkg",
"common/cosmwasm-smart-contracts/contracts-common", "common/cosmwasm-smart-contracts/easy_addr",
"common/cosmwasm-smart-contracts/contracts-common",
"common/cosmwasm-smart-contracts/easy_addr",
"common/cosmwasm-smart-contracts/ecash-contract",
"common/cosmwasm-smart-contracts/group-contract",
"common/cosmwasm-smart-contracts/mixnet-contract",
@@ -133,7 +134,8 @@ members = [
"tools/internal/testnet-manager",
"tools/internal/testnet-manager",
"tools/internal/testnet-manager/dkg-bypass-contract",
"tools/internal/testnet-manager/dkg-bypass-contract", "tools/internal/validator-status-check",
"tools/internal/testnet-manager/dkg-bypass-contract",
"tools/internal/validator-status-check",
"tools/nym-cli",
"tools/nym-id-cli",
"tools/nym-nr-query",
@@ -309,7 +311,7 @@ serde_yaml = "0.9.25"
sha2 = "0.10.9"
si-scale = "0.2.3"
sphinx-packet = "=0.6.0"
sqlx = "0.7.4"
sqlx = "0.8.6"
strum = "0.26"
strum_macros = "0.26"
subtle-encoding = "0.5"
@@ -87,7 +87,7 @@ impl StorageManager {
sqlx::query!("SELECT EXISTS (SELECT 1 FROM registered_gateway WHERE gateway_id_bs58 = ?) AS 'exists'", gateway_id)
.fetch_one(&self.connection_pool)
.await
.map(|result| result.exists == Some(1))
.map(|result| result.exists == 1)
}
pub(crate) async fn maybe_get_registered_gateway(
+1 -1
View File
@@ -193,7 +193,7 @@ impl PersistentStatsStorage {
pub async fn get_started_sessions_count(
&self,
start_date: Date,
) -> Result<i32, StatsStorageError> {
) -> Result<i64, StatsStorageError> {
Ok(self
.session_manager
.get_started_sessions_count(start_date)
+1 -1
View File
@@ -160,7 +160,7 @@ impl SessionManager {
.await
}
pub(crate) async fn get_started_sessions_count(&self, start_date: Date) -> Result<i32> {
pub(crate) async fn get_started_sessions_count(&self, start_date: Date) -> Result<i64> {
Ok(sqlx::query!(
"SELECT COUNT(*) as count FROM sessions_active WHERE date(start_time) = ?",
start_date
@@ -1,32 +0,0 @@
{
"db_name": "SQLite",
"query": "\n SELECT \n id as \"id!\",\n client_address_bs58 as \"client_address_bs58!\",\n content as \"content!\" \n FROM message_store \n WHERE client_address_bs58 = ? AND id > ?\n ORDER BY id ASC\n LIMIT ?;\n ",
"describe": {
"columns": [
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "client_address_bs58!",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "content!",
"ordinal": 2,
"type_info": "Blob"
}
],
"parameters": {
"Right": 3
},
"nullable": [
false,
false,
false
]
},
"hash": "03fe56298a6d60cdd5304a2953811a533d59b4f1f0e4efecd32c09256b657e24"
}
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "DELETE FROM message_store WHERE timestamp < ?",
"describe": {
"columns": [],
"parameters": {
"Right": 1
},
"nullable": []
},
"hash": "071fbde5277c0806ed47fa15a9c6288609379049828a94008f854b3daeed21d1"
}
@@ -16,7 +16,7 @@
{
"name": "protocol_version",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "endpoint",
@@ -31,17 +31,17 @@
{
"name": "tx_bytes",
"ordinal": 5,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "rx_bytes",
"ordinal": 6,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "persistent_keepalive_interval",
"ordinal": 7,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "allowed_ips",
@@ -51,7 +51,7 @@
{
"name": "client_id",
"ordinal": 9,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "signer_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "UPDATE shared_keys SET last_used_authentication = ? WHERE client_id = ?;",
"describe": {
"columns": [],
"parameters": {
"Right": 2
},
"nullable": []
},
"hash": "451158af8f5602e30445986a8de22d2e065c4e9dce4e7463a875ca8c21ac97c1"
}
@@ -1,38 +0,0 @@
{
"db_name": "SQLite",
"query": "SELECT * FROM shared_keys WHERE client_address_bs58 = ?",
"describe": {
"columns": [
{
"name": "client_id",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "client_address_bs58",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "derived_aes128_ctr_blake3_hmac_keys_bs58",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "derived_aes256_gcm_siv_key",
"ordinal": 3,
"type_info": "Blob"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
true,
true
]
},
"hash": "564c7da81081fab34754b76eeeedd48f3bc18842c03ef5a5c331bbee4c41c71c"
}
@@ -6,7 +6,7 @@
{
"name": "client_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "client_type: ClientType",
@@ -6,7 +6,7 @@
{
"name": "ticket_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "data!",
@@ -6,14 +6,14 @@
{
"name": "exists",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
"Right": 1
},
"nullable": [
null
false
]
},
"hash": "7f8af0799d7ae5f751b9964e9566589bf768e7079079f584beb0c1ba16d43a5c"
@@ -6,7 +6,7 @@
{
"name": "signer_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "available",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "ticket_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serial_number",
@@ -6,7 +6,7 @@
{
"name": "ticket_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serial_number",
@@ -16,7 +16,7 @@
{
"name": "protocol_version",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "endpoint",
@@ -31,17 +31,17 @@
{
"name": "tx_bytes",
"ordinal": 5,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "rx_bytes",
"ordinal": 6,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "persistent_keepalive_interval",
"ordinal": 7,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "allowed_ips",
@@ -51,7 +51,7 @@
{
"name": "client_id",
"ordinal": 9,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -1,32 +0,0 @@
{
"db_name": "SQLite",
"query": "\n SELECT \n id as \"id!\",\n client_address_bs58 as \"client_address_bs58!\",\n content as \"content!\"\n FROM message_store\n WHERE client_address_bs58 = ?\n ORDER BY id ASC\n LIMIT ?;\n ",
"describe": {
"columns": [
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "client_address_bs58!",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "content!",
"ordinal": 2,
"type_info": "Blob"
}
],
"parameters": {
"Right": 2
},
"nullable": [
false,
false,
false
]
},
"hash": "e3860c0c31ca03cc0b22ca34cef5f535a94c78d3491d44d7c8bf1b34a840839d"
}
@@ -6,7 +6,7 @@
{
"name": "proposal_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
+5 -22
View File
@@ -1,6 +1,8 @@
// Copyright 2021-2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: GPL-3.0-only
use std::time::SystemTime;
use crate::error::GatewayStorageError;
use nym_credentials_interface::{AvailableBandwidth, ClientTicket, CredentialSpendingData};
use nym_gateway_requests::shared_key::{LegacySharedKeys, SharedGatewayKey, SharedSymmetricKey};
@@ -113,7 +115,7 @@ pub struct WireguardPeer {
pub preshared_key: Option<String>,
pub protocol_version: Option<i64>,
pub endpoint: Option<String>,
pub last_handshake: Option<sqlx::types::chrono::NaiveDateTime>,
pub last_handshake: Option<OffsetDateTime>,
pub tx_bytes: i64,
pub rx_bytes: i64,
pub persistent_keepalive_interval: Option<i64>,
@@ -128,18 +130,7 @@ impl From<defguard_wireguard_rs::host::Peer> for WireguardPeer {
preshared_key: value.preshared_key.as_ref().map(|k| k.to_string()),
protocol_version: value.protocol_version.map(|v| v as i64),
endpoint: value.endpoint.map(|e| e.to_string()),
last_handshake: value.last_handshake.and_then(|t| {
if let Ok(d) = t.duration_since(std::time::UNIX_EPOCH) {
if let Ok(millis) = d.as_millis().try_into() {
sqlx::types::chrono::DateTime::from_timestamp_millis(millis)
.map(|d| d.naive_utc())
} else {
None
}
} else {
None
}
}),
last_handshake: value.last_handshake.map(OffsetDateTime::from),
tx_bytes: value.tx_bytes as i64,
rx_bytes: value.rx_bytes as i64,
persistent_keepalive_interval: value.persistent_keepalive_interval.map(|v| v as i64),
@@ -180,15 +171,7 @@ impl TryFrom<WireguardPeer> for defguard_wireguard_rs::host::Peer {
.map(|e| e.parse())
.transpose()
.map_err(|e| Self::Error::TypeConversion(format!("endpoint {e}")))?,
last_handshake: value.last_handshake.and_then(|t| {
let unix_time = std::time::UNIX_EPOCH;
if let Ok(millis) = t.and_utc().timestamp_millis().try_into() {
let duration = std::time::Duration::from_millis(millis);
unix_time.checked_add(duration)
} else {
None
}
}),
last_handshake: value.last_handshake.map(SystemTime::from),
tx_bytes: value
.tx_bytes
.try_into()
+1 -1
View File
@@ -92,7 +92,7 @@ impl TicketStorageManager {
)
.fetch_one(&self.connection_pool)
.await
.map(|result| result.exists == Some(1))
.map(|result| result.exists == 1)
}
pub(crate) async fn remove_binary_ticket_data(
+1 -1
View File
@@ -111,7 +111,7 @@ impl StorageManager {
consensus_address: &str,
start_height: i64,
end_height: i64,
) -> Result<i32, sqlx::Error> {
) -> Result<i64, sqlx::Error> {
trace!("get_signed_between");
let start = Instant::now();
+2 -2
View File
@@ -170,7 +170,7 @@ impl ScraperStorage {
consensus_address: &str,
start_height: i64,
end_height: i64,
) -> Result<i32, ScraperError> {
) -> Result<i64, ScraperError> {
Ok(self
.manager
.get_signed_between(consensus_address, start_height, end_height)
@@ -182,7 +182,7 @@ impl ScraperStorage {
consensus_address: &str,
start_time: OffsetDateTime,
end_time: OffsetDateTime,
) -> Result<i32, ScraperError> {
) -> Result<i64, ScraperError> {
let Some(block_start) = self.get_first_block_height_after(start_time).await? else {
return Ok(0);
};
@@ -6,7 +6,7 @@
{
"name": "epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serialised_signatures",
@@ -16,7 +16,7 @@
{
"name": "serialization_revision: u8",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serialised_key",
@@ -16,7 +16,7 @@
{
"name": "serialization_revision: u8",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "mix_id",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "identity_key",
@@ -6,7 +6,7 @@
{
"name": "count",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "reliability: f32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Null"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "timestamp",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "reliability: u8",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serialised_signatures",
@@ -6,7 +6,7 @@
{
"name": "count",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "uptime",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -16,7 +16,7 @@
{
"name": "count: u32",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "timestamp",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "reliability: u8",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "count: u32",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "absolute_epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "eligible_mixnodes: u32",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,14 +6,14 @@
{
"name": "exists",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
"Right": 0
},
"nullable": [
null
false
]
},
"hash": "5e3824763c4ef13194876e3cdd65c2da97193c60e8d1a1640c48ba65e18a9faa"
@@ -6,7 +6,7 @@
{
"name": "epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serialised_signatures",
@@ -6,12 +6,12 @@
{
"name": "node_id: NodeId",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "value: f32",
"ordinal": 1,
"type_info": "Int"
"type_info": "Null"
}
],
"parameters": {
@@ -19,7 +19,7 @@
},
"nullable": [
false,
true
null
]
},
"hash": "676299beb2004ab89f7b38cf21ffb84ab5e7d7435297573523e2532560c2e302"
@@ -6,7 +6,7 @@
{
"name": "db_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "identity_key",
@@ -16,37 +16,37 @@
{
"name": "reliability: u8",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "timestamp!",
"ordinal": 3,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_id!",
"ordinal": 4,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer1_mix_id!",
"ordinal": 5,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer2_mix_id!",
"ordinal": 6,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer3_mix_id!",
"ordinal": 7,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "monitor_run_id!",
"ordinal": 8,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "deposit_id: DepositId",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "merkle_leaf",
@@ -16,7 +16,7 @@
{
"name": "merkle_index: u32",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "uptime",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "timestamp",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "reliability: u8",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "timestamp",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "reliability: u8",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "count",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,12 +11,12 @@
{
"name": "node_id: NodeId",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "id",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "uptime!",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "reliability: f32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Null"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "count: u32",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "node_id: NodeId",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,12 +11,12 @@
{
"name": "mix_id: NodeId",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "id",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "epoch_id: u32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "serialised_signatures",
@@ -16,7 +16,7 @@
{
"name": "serialization_revision: u8",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "mix_id: NodeId",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "value: f32",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Null"
}
],
"parameters": {
@@ -19,7 +19,7 @@
},
"nullable": [
false,
true
null
]
},
"hash": "c19e1b3768bf2929407599e6e8783ead09f4d7319b7997fa2a9bb628f9404166"
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "reliability: f32",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "count",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,14 +6,14 @@
{
"name": "exists",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
"Right": 1
},
"nullable": [
null
false
]
},
"hash": "e55db4def70689c061d0e07115a21068431575afd2be8afafce1a7fb13507e7e"
@@ -6,7 +6,7 @@
{
"name": "count",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -11,7 +11,7 @@
{
"name": "uptime!",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,12 +6,12 @@
{
"name": "db_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "mix_id!",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "identity_key",
@@ -21,37 +21,37 @@
{
"name": "reliability: u8",
"ordinal": 3,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "timestamp!",
"ordinal": 4,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_id!",
"ordinal": 5,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer1_mix_id!",
"ordinal": 6,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer2_mix_id!",
"ordinal": 7,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "layer3_mix_id!",
"ordinal": 8,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "monitor_run_id!",
"ordinal": 9,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
+2 -2
View File
@@ -105,7 +105,7 @@ impl MixnodeStatus {
)]
pub struct MixnodeCoreStatusResponse {
pub mix_id: NodeId,
pub count: i32,
pub count: i64,
}
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema, ToSchema)]
@@ -119,7 +119,7 @@ pub struct MixnodeCoreStatusResponse {
)]
pub struct GatewayCoreStatusResponse {
pub identity: String,
pub count: i32,
pub count: i64,
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize, JsonSchema, ToSchema)]
+7 -7
View File
@@ -747,7 +747,7 @@ impl StorageManager {
&self,
db_mixnode_id: i64,
since: i64,
) -> Result<i32, sqlx::Error> {
) -> Result<i64, sqlx::Error> {
let count = sqlx::query!(
r#"
SELECT COUNT(*) as count FROM
@@ -786,7 +786,7 @@ impl StorageManager {
&self,
gateway_id: i64,
since: i64,
) -> Result<i32, sqlx::Error> {
) -> Result<i64, sqlx::Error> {
let count = sqlx::query!(
r#"
SELECT COUNT(*) as count FROM
@@ -824,7 +824,7 @@ impl StorageManager {
)
.fetch_one(&self.connection_pool)
.await
.map(|result| result.exists == Some(1))
.map(|result| result.exists == 1)
}
/// Creates new entry for mixnode historical uptime
@@ -966,7 +966,7 @@ impl StorageManager {
&self,
since: i64,
until: i64,
) -> Result<i32, sqlx::Error> {
) -> Result<i64, sqlx::Error> {
let count = sqlx::query!(
"SELECT COUNT(*) as count FROM monitor_run WHERE timestamp > ? AND timestamp < ?",
since,
@@ -1227,7 +1227,7 @@ impl StorageManager {
.await
}
pub(super) async fn get_mixnode_statuses_count(&self, db_id: i64) -> Result<i32, sqlx::Error> {
pub(super) async fn get_mixnode_statuses_count(&self, db_id: i64) -> Result<i64, sqlx::Error> {
sqlx::query!(
r#"
SELECT COUNT(*) as count
@@ -1279,7 +1279,7 @@ impl StorageManager {
.await
}
pub(super) async fn get_gateway_statuses_count(&self, db_id: i64) -> Result<i32, sqlx::Error> {
pub(super) async fn get_gateway_statuses_count(&self, db_id: i64) -> Result<i64, sqlx::Error> {
sqlx::query!(
r#"
SELECT COUNT(*) as count
@@ -1341,7 +1341,7 @@ pub(crate) mod v3_migration {
sqlx::query!("SELECT EXISTS (SELECT 1 FROM v3_migration_info) AS 'exists'",)
.fetch_one(&self.connection_pool)
.await
.map(|result| result.exists == Some(1))
.map(|result| result.exists == 1)
}
pub(crate) async fn set_v3_migration_completion(&self) -> Result<(), sqlx::Error> {
+2 -2
View File
@@ -679,7 +679,7 @@ impl NymApiStorage {
&self,
mix_id: NodeId,
since: Option<i64>,
) -> Result<i32, NymApiStorageError> {
) -> Result<i64, NymApiStorageError> {
let db_id = self.manager.get_mixnode_database_id(mix_id).await?;
if let Some(node_id) = db_id {
@@ -707,7 +707,7 @@ impl NymApiStorage {
&self,
identity: &str,
since: Option<i64>,
) -> Result<i32, NymApiStorageError> {
) -> Result<i64, NymApiStorageError> {
let node_id = self
.manager
.get_gateway_database_id_by_identity(identity)
@@ -6,7 +6,7 @@
{
"name": "node_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "host",
@@ -16,7 +16,7 @@
{
"name": "http_api_port",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO mixnode_description (\n mix_id, moniker, website, security_contact, details, last_updated_utc\n ) VALUES (?, ?, ?, ?, ?, ?)\n ON CONFLICT (mix_id) DO UPDATE SET\n moniker = excluded.moniker,\n website = excluded.website,\n security_contact = excluded.security_contact,\n details = excluded.details,\n last_updated_utc = excluded.last_updated_utc\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
},
"hash": "06065394c157927e4002ddd5c7c1af626ae15728d615f539470cd7c189312385"
}
@@ -11,22 +11,22 @@
{
"name": "total_stake!: i64",
"ordinal": 1,
"type_info": "Int"
"type_info": "Integer"
},
{
"name": "total_packets_received!: i64",
"ordinal": 2,
"type_info": "Int"
"type_info": "Integer"
},
{
"name": "total_packets_sent!: i64",
"ordinal": 3,
"type_info": "Int"
"type_info": "Integer"
},
{
"name": "total_packets_dropped!: i64",
"ordinal": 4,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -1,12 +0,0 @@
{
"db_name": "SQLite",
"query": "DELETE FROM nym_nodes\n WHERE last_updated_utc < ?",
"describe": {
"columns": [],
"parameters": {
"Right": 1
},
"nullable": []
},
"hash": "12524c93213c29a4f231785ba25a5b483d9e1a395c65c536fdc4596b69b4584b"
}
@@ -16,7 +16,7 @@
{
"name": "last_updated_utc!",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_identity_key",
@@ -6,7 +6,7 @@
{
"name": "node_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "bond_info: serde_json::Value",
@@ -6,7 +6,7 @@
{
"name": "node_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "ed25519_identity_pubkey",
@@ -16,7 +16,7 @@
{
"name": "total_stake",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "ip_addresses!: serde_json::Value",
@@ -26,7 +26,7 @@
{
"name": "mix_port",
"ordinal": 4,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "x25519_sphinx_pubkey",
@@ -1,12 +0,0 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO mixnode_description (\n mix_id, moniker, website, security_contact, details, last_updated_utc\n ) VALUES (?, ?, ?, ?, ?, ?)\n ON CONFLICT (mix_id) DO UPDATE SET\n moniker = excluded.moniker,\n website = excluded.website,\n security_contact = excluded.security_contact,\n details = excluded.details,\n last_updated_utc = excluded.last_updated_utc\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
},
"hash": "3825020ab0ecbffe83270c57ec74fb7987a6807d3381a6068c79b127a668b190"
}
@@ -6,7 +6,7 @@
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_identity_key!",
@@ -11,12 +11,12 @@
{
"name": "bonded: bool",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "performance!",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "self_described?",
@@ -41,12 +41,12 @@
{
"name": "last_testrun_utc?",
"ordinal": 7,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "last_updated_utc!",
"ordinal": 8,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "moniker!",
@@ -6,7 +6,7 @@
{
"name": "total_stake",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,19 +6,19 @@
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_id",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
"Right": 3
},
"nullable": [
true,
false,
false
]
},
@@ -6,7 +6,7 @@
{
"name": "count(id)",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -0,0 +1,12 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO nym_node_descriptions (\n node_id, moniker, website, security_contact, details, last_updated_utc\n ) VALUES (?, ?, ?, ?, ?, ?)\n ON CONFLICT (node_id) DO UPDATE SET\n moniker = excluded.moniker,\n website = excluded.website,\n security_contact = excluded.security_contact,\n details = excluded.details,\n last_updated_utc = excluded.last_updated_utc\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
},
"hash": "6a9780aad1f2f0c8ef780e51fe856679d5e28f95143f4e2a2b409009dc0f55ba"
}
@@ -6,7 +6,7 @@
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "date!",
@@ -16,7 +16,7 @@
{
"name": "timestamp_utc!",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "value_json!",
@@ -0,0 +1,32 @@
{
"db_name": "SQLite",
"query": "\n SELECT\n COALESCE(packets_received, 0) as \"packets_received!: _\",\n COALESCE(packets_sent, 0) as \"packets_sent!: _\",\n COALESCE(packets_dropped, 0) as \"packets_dropped!: _\"\n FROM mixnode_packet_stats_raw\n WHERE mix_id = ?\n ORDER BY timestamp_utc DESC\n LIMIT 1 OFFSET 1\n ",
"describe": {
"columns": [
{
"name": "packets_received!: _",
"ordinal": 0,
"type_info": "Null"
},
{
"name": "packets_sent!: _",
"ordinal": 1,
"type_info": "Null"
},
{
"name": "packets_dropped!: _",
"ordinal": 2,
"type_info": "Null"
}
],
"parameters": {
"Right": 1
},
"nullable": [
null,
null,
null
]
},
"hash": "786b6a5d954e38b204cebf322711c74c8cf1c08e5e2896a1d6d5b85c91991753"
}
@@ -6,7 +6,7 @@
{
"name": "count(id)",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -0,0 +1,32 @@
{
"db_name": "SQLite",
"query": "\n SELECT\n COALESCE(packets_received, 0) as \"packets_received!: _\",\n COALESCE(packets_sent, 0) as \"packets_sent!: _\",\n COALESCE(packets_dropped, 0) as \"packets_dropped!: _\"\n FROM nym_nodes_packet_stats_raw\n WHERE node_id = ?\n ORDER BY timestamp_utc DESC\n LIMIT 1 OFFSET 1\n ",
"describe": {
"columns": [
{
"name": "packets_received!: _",
"ordinal": 0,
"type_info": "Null"
},
{
"name": "packets_sent!: _",
"ordinal": 1,
"type_info": "Null"
},
{
"name": "packets_dropped!: _",
"ordinal": 2,
"type_info": "Null"
}
],
"parameters": {
"Right": 1
},
"nullable": [
null,
null,
null
]
},
"hash": "8bdf85a61e443fa5f4835bffd0bffc8ed1011f56714fde6007e50951e569854b"
}
@@ -1,12 +0,0 @@
{
"db_name": "SQLite",
"query": "\n INSERT INTO nym_node_descriptions (\n node_id, moniker, website, security_contact, details, last_updated_utc\n ) VALUES (?, ?, ?, ?, ?, ?)\n ON CONFLICT (node_id) DO UPDATE SET\n moniker = excluded.moniker,\n website = excluded.website,\n security_contact = excluded.security_contact,\n details = excluded.details,\n last_updated_utc = excluded.last_updated_utc\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
},
"hash": "9104e50524ad5a103bd199a0531d73b74876e9aecda2117227e2e180258d91a1"
}
@@ -11,7 +11,7 @@
{
"name": "bonded: bool",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "node_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "ed25519_identity_pubkey",
@@ -16,7 +16,7 @@
{
"name": "total_stake",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "ip_addresses!: serde_json::Value",
@@ -26,7 +26,7 @@
{
"name": "mix_port",
"ordinal": 4,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "x25519_sphinx_pubkey",
@@ -1,32 +0,0 @@
{
"db_name": "SQLite",
"query": "\n SELECT\n COALESCE(packets_received, 0) as packets_received,\n COALESCE(packets_sent, 0) as packets_sent,\n COALESCE(packets_dropped, 0) as packets_dropped\n FROM nym_nodes_packet_stats_raw\n WHERE node_id = ?\n ORDER BY timestamp_utc DESC\n LIMIT 1 OFFSET 1\n ",
"describe": {
"columns": [
{
"name": "packets_received",
"ordinal": 0,
"type_info": "Int64"
},
{
"name": "packets_sent",
"ordinal": 1,
"type_info": "Int64"
},
{
"name": "packets_dropped",
"ordinal": 2,
"type_info": "Int64"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false
]
},
"hash": "97f4b340bb0f6c9c78d77b24d4f9d3d13ab61cbaac6f8c3cfc06c95e0f13252f"
}
@@ -6,22 +6,22 @@
{
"name": "id!",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "gateway_id!",
"ordinal": 1,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "status!",
"ordinal": 2,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "created_utc!",
"ordinal": 3,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "ip_address!",
@@ -36,7 +36,7 @@
{
"name": "last_assigned_utc",
"ordinal": 6,
"type_info": "Int64"
"type_info": "Integer"
}
],
"parameters": {
@@ -6,7 +6,7 @@
{
"name": "count: i64",
"ordinal": 0,
"type_info": "Int"
"type_info": "Integer"
}
],
"parameters": {
@@ -0,0 +1,44 @@
{
"db_name": "SQLite",
"query": "SELECT\n nd.node_id,\n moniker,\n website,\n security_contact,\n details\n FROM\n nym_node_descriptions nd\n INNER JOIN\n nym_nodes\n WHERE\n bond_info IS NOT NULL\n ",
"describe": {
"columns": [
{
"name": "node_id",
"ordinal": 0,
"type_info": "Integer"
},
{
"name": "moniker",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "website",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "security_contact",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "details",
"ordinal": 4,
"type_info": "Text"
}
],
"parameters": {
"Right": 0
},
"nullable": [
false,
true,
true,
true,
true
]
},
"hash": "aa602604c0e7b6eef41ea3cd83c16610e15be2d7ee3f6c4d3debf23f95fb9c2e"
}
@@ -1,12 +1,12 @@
{
"db_name": "SQLite",
"query": "SELECT\n node_id,\n self_described as \"self_described: serde_json::Value\"\n FROM\n nym_nodes\n WHERE\n self_described IS NOT NULL\n ",
"query": "SELECT\n node_id,\n self_described as \"self_described: serde_json::Value\"\n FROM\n nym_nodes\n WHERE\n self_described IS NOT NULL\n ORDER BY\n node_id\n ",
"describe": {
"columns": [
{
"name": "node_id",
"ordinal": 0,
"type_info": "Int64"
"type_info": "Integer"
},
{
"name": "self_described: serde_json::Value",
@@ -22,5 +22,5 @@
true
]
},
"hash": "7526390c3d17622564067f153867295a279179315650f6fb363d5f3177bf70e3"
"hash": "c7656b2b1b4328415772ce69d0568bd5438d6c8496ca9cbdcfb70bb5375b345e"
}

Some files were not shown because too many files have changed in this diff Show More