repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/build.rs
src/build.rs
use std::env; use std::error::Error; use std::fs::File; use std::io::Write; use std::path::PathBuf; use std::process::Command; struct Some {} impl<E> From<E> for Some where E: Error, { fn from(_: E) -> Some { Some {} } } fn main() { let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap())...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/file.rs
src/file.rs
use std::borrow::Cow; use std::env; use std::ffi::OsStr; use std::fs::{self, File}; use std::io::Read; #[cfg(target_family = "windows")] use std::path::Prefix; use std::path::{Component, Path, PathBuf}; use crate::errors::*; pub trait ToUtf8 { fn to_utf8(&self) -> Result<&str>; } impl ToUtf8 for OsStr { fn t...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/extensions.rs
src/extensions.rs
use std::borrow::Cow; use std::fmt; use std::process::{Command, ExitStatus, Output}; use crate::errors::*; use crate::shell::MessageInfo; pub const STRIPPED_BINS: &[&str] = &[crate::docker::DOCKER, crate::docker::PODMAN, "cargo"]; pub trait CommandExt { fn fmt_message(&self, msg_info: &mut MessageInfo) -> String...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/cargo.rs
src/cargo.rs
use serde::Deserialize; use std::path::{Path, PathBuf}; use std::process::{Command, ExitStatus}; use crate::cli::Args; use crate::errors::*; use crate::extensions::CommandExt; use crate::shell::{self, MessageInfo}; #[derive(Debug, Clone, PartialEq, Eq)] pub enum Subcommand { Build, Check, Doc, Run, ...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/interpreter.rs
src/interpreter.rs
use std::path::Path; use crate::errors::*; use crate::file; use crate::Target; /// Checks if the interpreters have been registered in the host system pub fn is_registered(target: &Target) -> Result<bool> { if file::read("/proc/sys/fs/binfmt_misc/status")?.trim() != "enabled" { eyre::bail!("host system doe...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/rustup.rs
src/rustup.rs
use std::path::PathBuf; use std::process::Command; use rustc_version::{Channel, Version}; use crate::errors::*; pub use crate::extensions::{CommandExt, OutputExt}; use crate::rustc::QualifiedToolchain; use crate::shell::{MessageInfo, Verbosity}; use crate::Target; #[derive(Debug)] pub struct AvailableTargets { p...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/local.rs
src/docker/local.rs
use std::io; use std::path::Path; use std::process::{Command, ExitStatus}; use std::sync::atomic::Ordering; use super::shared::*; use crate::errors::Result; use crate::extensions::CommandExt; use crate::file::{PathExt, ToUtf8}; use crate::shell::MessageInfo; use eyre::Context; use is_terminal::IsTerminal; // NOTE: ho...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/engine.rs
src/docker/engine.rs
use std::env; use std::path::{Path, PathBuf}; use std::process::Command; use crate::config::bool_from_envvar; use crate::extensions::CommandExt; use crate::shell::MessageInfo; use crate::{errors::*, OutputExt}; use super::{Architecture, ContainerOs}; pub const DOCKER: &str = "docker"; pub const PODMAN: &str = "podma...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/image.rs
src/docker/image.rs
use std::str::FromStr; use serde::{Deserialize, Serialize}; use crate::{ docker::{CROSS_IMAGE, DEFAULT_IMAGE_VERSION}, errors::*, shell::MessageInfo, TargetTriple, }; use super::Engine; #[derive(Debug, Clone, Deserialize, PartialEq, Eq)] pub struct Image { pub name: String, // The toolchain ...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/remote.rs
src/docker/remote.rs
use std::collections::BTreeMap; use std::io::{self, BufRead, Read, Write}; use std::path::Path; use std::process::{Command, ExitStatus}; use std::{env, fs, time}; use eyre::Context; use is_terminal::IsTerminal; use super::engine::Engine; use super::shared::*; use crate::config::bool_from_envvar; use crate::errors::Re...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
true
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/provided_images.rs
src/docker/provided_images.rs
#![doc = "*** AUTO-GENERATED, do not touch. Run `cargo xtask codegen` to update ***"] use super::{ImagePlatform, ProvidedImage}; #[rustfmt::skip] pub static PROVIDED_IMAGES: &[ProvidedImage] = &[ ProvidedImage { name: "x86_64-unknown-linux-gnu", platforms: &[ImagePlatform::X86_64_UNKNOW...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/build.rs
src/docker/build.rs
use std::env; use std::process::Command; use std::str::FromStr; use super::engine::Engine; use crate::errors::*; use crate::shell::Verbosity; #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum Progress { Plain, Auto, Tty, } impl FromStr for Progress { type Err = eyre::ErrReport; fn from_str(p...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/mod.rs
src/docker/mod.rs
mod build; pub(crate) mod custom; mod engine; mod image; mod local; mod provided_images; pub mod remote; mod shared; pub use self::build::{BuildCommandExt, BuildResultExt, Progress}; pub use self::engine::*; pub use self::provided_images::PROVIDED_IMAGES; pub use self::shared::*; pub use image::{ Architecture, Im...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/shared.rs
src/docker/shared.rs
#![allow(static_mut_refs)] // FIXME: Use correct types for CHILD_CONTAINER use super::custom::{Dockerfile, PreBuild}; use super::image::PossibleImage; use super::Image; use super::PROVIDED_IMAGES; use super::{engine::*, ProvidedImage}; use crate::cargo::CargoMetadata; use crate::config::Config; use crate::errors::*; u...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
true
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/docker/custom.rs
src/docker/custom.rs
use std::io::Write; use std::path::PathBuf; use std::str::FromStr; use crate::docker::{self, DockerOptions, DockerPaths}; use crate::shell::MessageInfo; use crate::{errors::*, file, CommandExt, ToUtf8}; use crate::{CargoMetadata, TargetTriple}; use super::{ create_target_dir, get_image_name, path_hash, BuildComma...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/tests/rustup.rs
src/tests/rustup.rs
use crate::rustup; #[test] fn remove_toolchain_suffixes() { // no overrides (default is active) assert_eq!( rustup::remove_toolchain_suffixes( "stable-aarch64-apple-darwin (active, default)\n\ stable-x86_64-unknown-linux-gnu" ), vec![ "stable-aarch64...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/tests/toml.rs
src/tests/toml.rs
use std::io::Read; use once_cell::sync::Lazy; use regex::{Regex, RegexBuilder}; use crate::ToUtf8; static TOML_REGEX: Lazy<Regex> = Lazy::new(|| { RegexBuilder::new(r#"```toml(.*?)\n(.*?)```"#) .multi_line(true) .dot_matches_new_line(true) .build() .expect("regex should be valid")...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/cross-util.rs
src/bin/cross-util.rs
#![deny(missing_debug_implementations, rust_2018_idioms)] use clap::{CommandFactory, Parser, Subcommand}; use cross::shell::MessageInfo; use cross::{docker, rustc::Toolchain}; mod commands; const APP_NAME: &str = "cross-util"; static VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), cross::commit_info!()); #[deriv...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/cross.rs
src/bin/cross.rs
#![deny(missing_debug_implementations, rust_2018_idioms)] use std::{ env, io::{self, Write}, }; use cross::{ cargo, cli, rustc, shell::{self, Verbosity}, OutputExt, Subcommand, }; pub fn main() -> cross::Result<()> { cross::install_panic_hook()?; cross::install_termination_hook()?; l...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/commands/mod.rs
src/bin/commands/mod.rs
mod clean; mod containers; mod images; mod run; pub use self::clean::*; pub use self::containers::*; pub use self::images::*; pub use self::run::*;
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/commands/run.rs
src/bin/commands/run.rs
use clap::Args as ClapArgs; use cross::config::Config; use cross::shell::{MessageInfo, Verbosity}; use cross::{ cargo_metadata_with_args, cli::Args, docker, rustc, setup, toml, CommandVariant, CrossSetup, Target, }; use eyre::Context; #[derive(ClapArgs, Debug)] pub struct Run { /// Container engine (such a...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/commands/clean.rs
src/bin/commands/clean.rs
use std::fs; use super::containers::*; use super::images::*; use clap::Args; use cross::shell::MessageInfo; #[derive(Args, Debug)] pub struct Clean { /// Force removal of images. #[clap(short, long)] pub force: bool, /// Remove local (development) images. #[clap(short, long)] pub local: bool, ...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/commands/containers.rs
src/bin/commands/containers.rs
use std::io; use clap::{Args, Subcommand}; use cross::docker::ImagePlatform; use cross::rustc::{QualifiedToolchain, Toolchain}; use cross::shell::MessageInfo; use cross::{docker, CommandExt, TargetTriple}; use is_terminal::IsTerminal; #[derive(Args, Debug)] pub struct ListVolumes { /// Container engine (such as d...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/src/bin/commands/images.rs
src/bin/commands/images.rs
use std::collections::{BTreeMap, BTreeSet}; use clap::builder::PossibleValue; use clap::{Args, Subcommand}; use cross::docker::{self, CROSS_CUSTOM_DOCKERFILE_IMAGE_PREFIX}; use cross::shell::MessageInfo; use cross::{CommandExt, TargetList}; // known image prefixes, with their registry // the docker.io registry can al...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/ci.rs
xtask/src/ci.rs
mod target_matrix; use crate::util::gha_output; use clap::Subcommand; use cross::shell::Verbosity; use cross::{cargo_command, CargoMetadata, CommandExt}; #[derive(Subcommand, Debug)] pub enum CiJob { /// Return needed metadata for building images PrepareMeta { // tag, branch #[clap(long, env =...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/install_git_hooks.rs
xtask/src/install_git_hooks.rs
use crate::util::project_dir; use clap::Args; use cross::shell::MessageInfo; #[derive(Args, Debug)] pub struct InstallGitHooks {} pub fn install_git_hooks(msg_info: &mut MessageInfo) -> cross::Result<()> { let root = project_dir(msg_info)?; let git_hooks = root.join(".git").join("hooks"); let cross_dev = ...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/target_info.rs
xtask/src/target_info.rs
use std::collections::BTreeMap; use crate::util::{format_repo, pull_image}; use clap::Args; use cross::shell::MessageInfo; use cross::{docker, CommandExt}; // Store raw text data in the binary so we don't need a data directory // when extracting all targets, or running our target info script. const TARGET_INFO_SCRIPT...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/util.rs
xtask/src/util.rs
use std::env; use std::fs; use std::io::Write; use std::path::{Path, PathBuf}; use std::process::Command; use cross::shell::MessageInfo; use cross::{docker, CommandExt, ToUtf8}; use once_cell::sync::{Lazy, OnceCell}; use serde::Deserialize; static WORKSPACE: OnceCell<PathBuf> = OnceCell::new(); /// Returns the carg...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/changelog.rs
xtask/src/changelog.rs
use std::cmp; use std::collections::BTreeSet; use std::fmt; use std::fs; use std::path::Path; use crate::util::{project_dir, write_to_string}; use cross::shell::MessageInfo; use cross::ToUtf8; use chrono::{Datelike, Utc}; use clap::{Args, Subcommand}; use eyre::Context; use serde::Deserialize; pub fn changelog(args:...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/hooks.rs
xtask/src/hooks.rs
use std::fs::File; use std::io::{BufRead, BufReader, ErrorKind}; use std::path::{Path, PathBuf}; use std::process::Command; use crate::util::{cargo, cargo_metadata, get_channel_prefer_nightly}; use clap::builder::BoolishValueParser; use clap::Args; use cross::shell::MessageInfo; use cross::CommandExt; use eyre::Contex...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/crosstool.rs
xtask/src/crosstool.rs
use std::cmp::Ordering; use std::fmt::Write; use std::fs; use std::path::{Path, PathBuf}; use crate::util::{project_dir, write_to_string}; use clap::Args; use cross::shell::MessageInfo; use cross::ToUtf8; const DEFAULT_GCC_VERSION: &str = "8.3.0"; const DEFAULT_GLIBC_VERSION: &str = "2.17.0"; const DEFAULT_UCLIBC_VER...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/codegen.rs
xtask/src/codegen.rs
use clap::Args; use cross::docker::ImagePlatform; use eyre::Context; use std::fmt::Write; use crate::util::{get_cargo_workspace, get_matrix}; #[derive(Args, Debug)] pub struct Codegen {} pub fn codegen(Codegen { .. }: Codegen) -> cross::Result<()> { let path = get_cargo_workspace().join("src/docker/provided_imag...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/build_docker_image.rs
xtask/src/build_docker_image.rs
use std::fmt::Write; use std::path::Path; use crate::util::{ cargo_metadata, get_matrix, gha_error, gha_output, gha_print, DEFAULT_PLATFORMS, }; use crate::ImageTarget; use clap::Args; use cross::docker::{self, BuildCommandExt, BuildResultExt, ImagePlatform, Progress}; use cross::shell::MessageInfo; use cross::{Co...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/main.rs
xtask/src/main.rs
#![deny(missing_debug_implementations, rust_2018_idioms)] pub mod build_docker_image; pub mod changelog; pub mod ci; pub mod codegen; pub mod crosstool; pub mod hooks; pub mod install_git_hooks; pub mod target_info; pub mod util; use ci::CiJob; use clap::{CommandFactory, Parser, Subcommand}; use codegen::Codegen; use...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
cross-rs/cross
https://github.com/cross-rs/cross/blob/426e8110a083c1aaa8e04ed460e86f4606226619/xtask/src/ci/target_matrix.rs
xtask/src/ci/target_matrix.rs
use std::process::Command; use clap::builder::{BoolishValueParser, PossibleValuesParser}; use clap::Parser; use cross::{shell::Verbosity, CommandExt}; use serde::{Deserialize, Serialize}; use crate::util::{get_matrix, gha_output, gha_print, CiTarget, ImageTarget}; #[derive(Parser, Debug)] pub struct TargetMatrix { ...
rust
Apache-2.0
426e8110a083c1aaa8e04ed460e86f4606226619
2026-01-04T15:49:10.802925Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_client/src/lib.rs
influxdb3_client/src/lib.rs
use bytes::Bytes; use hashbrown::HashMap; use influxdb3_catalog::log::{OrderedCatalogBatch, TriggerSettings}; use iox_query_params::StatementParam; use reqwest::{ Body, Certificate, IntoUrl, Method, StatusCode, header::{CONTENT_TYPE, HeaderMap, HeaderValue}, tls::Version, }; use secrecy::{ExposeSecret, Secr...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_authz/src/lib.rs
influxdb3_authz/src/lib.rs
use std::sync::Arc; use async_trait::async_trait; use authz::{ Authorization, Authorizer as IoxAuthorizer, Error as IoxError, Permission as IoxPermission, }; use influxdb3_id::{DbId, TokenId}; use iox_time::{Time, TimeProvider}; use observability_deps::tracing::{debug, trace}; use serde::Serialize; use sha2::{Dige...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_internal_api/src/query_executor.rs
influxdb3_internal_api/src/query_executor.rs
use async_trait::async_trait; use datafusion::arrow::array::{Array, BooleanArray, RecordBatch, StringArray}; use datafusion::arrow::datatypes::{DataType, Field, Schema, SchemaRef}; use datafusion::arrow::error::ArrowError; use datafusion::common::DataFusionError; use datafusion::execution::SendableRecordBatchStream; us...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_internal_api/src/lib.rs
influxdb3_internal_api/src/lib.rs
//! This crate contains the internal API for use across the crates in this code base, mainly //! to get around circular dependency issues. pub mod query_executor;
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/report.rs
influxdb3_load_generator/src/report.rs
//! Trackers and report generators for write and query runs use crate::line_protocol_generator::{WriteSummary, WriterId}; use crate::query_generator::QuerierId; use anyhow::{Context, bail}; use chrono::{DateTime, Local}; use influxdb3_process::INFLUXDB3_PROCESS_NAME; use parking_lot::Mutex; use serde::Serialize; use s...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/lib.rs
influxdb3_load_generator/src/lib.rs
pub mod line_protocol_generator; pub mod query_generator; pub mod report; pub mod specification; pub mod specs; pub mod commands { pub mod common; pub mod full; pub mod query; pub mod write; pub mod write_fixed; }
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/query_generator.rs
influxdb3_load_generator/src/query_generator.rs
use std::slice::IterMut; use clap::ValueEnum; use serde::{Deserialize, Serialize}; use serde_json::Value; use crate::specification::{ParamKind, ParamSpec, QuerierSpec, QuerySpec}; pub type QuerierId = usize; /// Create a set of queriers to perform queries in parallel pub fn create_queriers( spec: &QuerierSpec, ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/main.rs
influxdb3_load_generator/src/main.rs
//! Entrypoint of the influxdb3_load_generator binary #![recursion_limit = "512"] // required for print_cpu #![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)] #![warn( missing_debug_implementations, clippy::explicit_iter_loop, clippy::use_self, clippy::clone_on_ref_ptr, ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/specification.rs
influxdb3_load_generator/src/specification.rs
use std::path::Path; use anyhow::Context; use serde::{Deserialize, Serialize}; use serde_json::Value; use crate::line_protocol_generator::WriterId; /// The specification for the data to be generated #[derive(Debug, Deserialize, Serialize)] pub struct DataSpec { /// The name of this spec pub name: String, ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/line_protocol_generator.rs
influxdb3_load_generator/src/line_protocol_generator.rs
//! This contains the logic for creating generators for a given spec for the number of workers. use crate::report::WriteReporter; use crate::specification::{DataSpec, FieldKind, MeasurementSpec}; use chrono::{DateTime, Local}; use influxdb3_client::{Client, Precision}; use rand::distributions::Alphanumeric; use rand::...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/commands/write.rs
influxdb3_load_generator/src/commands/write.rs
use crate::line_protocol_generator::{GeneratorRunner, create_generators}; use crate::report::WriteReporter; use crate::specification::DataSpec; use anyhow::Context; use chrono::{DateTime, Local, TimeZone}; use clap::Parser; use futures::StreamExt; use futures::stream::FuturesUnordered; use rand::SeedableRng; use rand::...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/commands/write_fixed.rs
influxdb3_load_generator/src/commands/write_fixed.rs
//! This always writes to, //! - `foo_` dbs //! - `series_` tables //! - `tag_` tags //! - `field_1, field_2` fields //! //! Data is generated based on num_writers setup and a fixed tput and it writes until it's been //! shutdown use std::{ convert::Infallible, slice::Iter, time::{Duration, Instant}...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/commands/query.rs
influxdb3_load_generator/src/commands/query.rs
use std::{collections::HashMap, path::PathBuf, sync::Arc}; use bytes::Bytes; use chrono::{DateTime, Local}; use clap::Parser; use influxdb3_client::Client; use serde_json::Value; use tokio::time::Instant; use crate::{ query_generator::{Format, Querier, create_queriers}, report::QueryReporter, specificatio...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/commands/common.rs
influxdb3_load_generator/src/commands/common.rs
use std::{fs::File, path::PathBuf, str::FromStr, sync::Arc}; use anyhow::{Context, anyhow, bail}; use chrono::{DateTime, Local}; use clap::Parser; use influxdb3_client::Client; use secrecy::{ExposeSecret, Secret}; use url::Url; use crate::{ report::{QueryReporter, SystemStatsReporter, WriteReporter}, specific...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/commands/full.rs
influxdb3_load_generator/src/commands/full.rs
use std::sync::Arc; use clap::Parser; use tokio::task::JoinSet; use crate::commands::{query::run_query_load, write::run_write_load}; use super::{common::InfluxDb3Config, query::QueryConfig, write::WriteConfig}; #[derive(Debug, Parser)] pub struct Config { /// Common InfluxDB 3 Core config #[clap(flatten)] ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/specs/one_mil.rs
influxdb3_load_generator/src/specs/one_mil.rs
//! Spec for the 1 million series use case use crate::specification::*; use crate::specs::BuiltInSpec; pub(crate) fn spec() -> BuiltInSpec { let description = r#"1 million series in a single table use case. If you run this with -writer-count=100 you'll get all 1M series written every sampling i...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/specs/example.rs
influxdb3_load_generator/src/specs/example.rs
//! Spec that shows the various elements of the data generator. Gets printed to console when //! the generator is run without a spec specified. use serde_json::json; use crate::specification::*; use crate::specs::BuiltInSpec; pub(crate) fn spec() -> BuiltInSpec { let name = "sample_spec".to_string(); let des...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_load_generator/src/specs/mod.rs
influxdb3_load_generator/src/specs/mod.rs
//! This module contains the built-in specifications for the load generator. use crate::specification::{DataSpec, QuerierSpec}; mod example; mod one_mil; /// Get all built-in specs pub(crate) fn built_in_specs() -> Vec<BuiltInSpec> { // add new built-in specs here to the end of this vec vec![example::spec(),...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/iox_query_influxql_rewrite/src/lib.rs
iox_query_influxql_rewrite/src/lib.rs
use std::collections::HashSet; use influxdb_influxql_parser::{ common::ParseError, explain::ExplainStatement, identifier::Identifier, parse_statements as parse_internal, select::{MeasurementSelection, SelectStatement}, show_measurements::ExtendedOnClause, statement::Statement, }; #[derive(...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/datafusion.rs
influxdb3_clap_blocks/src/datafusion.rs
use std::collections::HashMap; use iox_query::config::IOX_CONFIG_PREFIX; /// Extends the standard [`HashMap`] based DataFusion config option in the CLI with specific /// options (along with defaults) for InfluxDB 3 Core/Enterprise. This is intended for customization of /// options that are defined in the `iox_query` ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/socket_addr.rs
influxdb3_clap_blocks/src/socket_addr.rs
//! Config for socket addresses. use std::{net::ToSocketAddrs, ops::Deref}; /// Parsable socket address. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct SocketAddr(std::net::SocketAddr); impl Deref for SocketAddr { type Target = std::net::SocketAddr; fn deref(&self) -> &Self::Target { &self.0...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/lib.rs
influxdb3_clap_blocks/src/lib.rs
//! Configuration options for the `influxdb3` CLI which uses the `clap` crate pub mod datafusion; pub mod memory_size; pub mod object_store; pub mod plugins; pub mod socket_addr; pub mod tokio;
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/object_store.rs
influxdb3_clap_blocks/src/object_store.rs
//! CLI handling for object store config (via CLI arguments and environment variables). use async_trait::async_trait; use bytes::Bytes; use futures::{StreamExt, stream::BoxStream}; use iox_time::{SystemProvider, TimeProvider}; use non_empty_string::NonEmptyString; use object_store::{ CredentialProvider, DynObjectS...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/tokio.rs
influxdb3_clap_blocks/src/tokio.rs
//! Config for the tokio main IO and DataFusion runtimes. use std::{ num::{NonZeroU32, NonZeroUsize}, sync::{ Arc, atomic::{AtomicUsize, Ordering}, }, time::Duration, }; use paste::paste; /// Tokio runtime type. #[derive(Debug, Clone, Copy, Default, clap::ValueEnum)] pub enum TokioRun...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/plugins.rs
influxdb3_clap_blocks/src/plugins.rs
use std::path::PathBuf; // Specifies the behavior of the Processing Engine. // Currently used to determine the plugin directory and which tooling to use to initialize python, // but will expand for other settings, such as error behavior. #[derive(Debug, clap::Parser, Clone)] pub struct ProcessingEngineConfig { ///...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_clap_blocks/src/memory_size.rs
influxdb3_clap_blocks/src/memory_size.rs
//! Helper types to express memory size. use std::{str::FromStr, sync::OnceLock}; use observability_deps::tracing::info; use sysinfo::System; /// Memory size. /// /// # Parsing /// This can be parsed from strings in one of the following formats: /// /// - **absolute:** just use a non-negative number to specify the a...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/object_store_utils/src/lib.rs
object_store_utils/src/lib.rs
mod retryable_object_store; pub use retryable_object_store::RetryParams; pub use retryable_object_store::RetryableObjectStore; pub use retryable_object_store::set_default_retry_params; #[cfg(any(feature = "test-helpers", test))] mod test_object_store; #[cfg(any(feature = "test-helpers", test))] pub use test_object_st...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/object_store_utils/src/test_object_store.rs
object_store_utils/src/test_object_store.rs
use std::fmt::Display; use std::ops::Range; use std::sync::Arc; use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; use async_trait::async_trait; use bytes::Bytes; use futures::stream::BoxStream; use object_store::{ Error as ObjectStoreError, GetOptions, GetResult, ListResult, MultipartUpload, ObjectMeta, ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/object_store_utils/src/retryable_object_store.rs
object_store_utils/src/retryable_object_store.rs
use std::pin::Pin; use std::sync::{Arc, OnceLock}; use std::time::Duration; use backon::{ExponentialBuilder, Retryable}; use futures::stream::{BoxStream, StreamExt}; use object_store::{ Error as ObjectStoreError, GetResult, ObjectMeta, ObjectStore, PutPayload, PutResult, Result, path::Path, }; use observabilit...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_id/src/lib.rs
influxdb3_id/src/lib.rs
use serde::Deserialize; use serde::Serialize; use std::fmt; use std::fmt::Display; use std::hash::Hash; use std::num::ParseIntError; use std::str::FromStr; use std::sync::atomic::{AtomicU64, Ordering}; mod serialize; pub use serialize::{SerdeVecMap, SerdeVecSet}; pub trait CatalogId: Default + Hash + Eq + Copy + Ord ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_id/src/serialize.rs
influxdb3_id/src/serialize.rs
use std::{ marker::PhantomData, ops::{Deref, DerefMut}, }; use indexmap::{ IndexMap, IndexSet, map::{IntoIter, Iter, IterMut}, set::{IntoIter as SetIntoIter, Iter as SetIter}, }; use serde::{ Deserialize, Deserializer, Serialize, Serializer, de::{self, SeqAccess, Visitor}, ser::Serializ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/queries.rs
influxdb3_system_tables/src/queries.rs
use std::sync::Arc; use arrow_array::{ ArrayRef, BooleanArray, DurationNanosecondArray, Int64Array, RecordBatch, StringArray, TimestampNanosecondArray, }; use arrow_schema::{DataType, Field, Schema, SchemaRef, TimeUnit}; use datafusion::{error::DataFusionError, logical_expr::Expr}; use iox_query::query_log::{Q...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/lib.rs
influxdb3_system_tables/src/lib.rs
use std::{any::Any, collections::HashMap, ops::Deref, sync::Arc}; use datafusion::{ catalog::SchemaProvider, datasource::TableProvider, error::DataFusionError, logical_expr::{BinaryExpr, Expr, Operator, col}, scalar::ScalarValue, }; use generations::GenerationDurationsTable; use influxdb3_catalog::...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/last_caches.rs
influxdb3_system_tables/src/last_caches.rs
use std::sync::Arc; use arrow::array::{GenericListBuilder, StringViewBuilder, UInt16Builder, UInt64Builder}; use arrow_array::{ArrayRef, RecordBatch}; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use datafusion::{error::DataFusionError, logical_expr::Expr}; use influxdb3_catalog::{ catalog::DatabaseSche...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/tokens.rs
influxdb3_system_tables/src/tokens.rs
use std::sync::Arc; use arrow::array::{StringViewBuilder, TimestampMillisecondBuilder, UInt64Builder}; use arrow_array::{ArrayRef, RecordBatch}; use arrow_schema::{DataType, Field, Schema, SchemaRef, TimeUnit}; use datafusion::{error::DataFusionError, prelude::Expr}; use influxdb3_authz::TokenInfo; use influxdb3_catal...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/parquet_files.rs
influxdb3_system_tables/src/parquet_files.rs
use std::sync::Arc; use arrow_array::{ArrayRef, Int64Array, RecordBatch, StringArray, UInt64Array}; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use async_trait::async_trait; use datafusion::{error::DataFusionError, logical_expr::Expr}; use influxdb3_id::DbId; use influxdb3_write::{ParquetFile, WriteBuffer}...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/databases.rs
influxdb3_system_tables/src/databases.rs
use std::sync::Arc; use crate::DEFAULT_TIMEZONE; use arrow::array::{StringViewBuilder, UInt64Builder}; use arrow_array::{ArrayRef, RecordBatch}; use arrow_schema::{DataType, Field, Schema, SchemaRef, TimeUnit}; use datafusion::{error::DataFusionError, logical_expr::Expr}; use influxdb3_catalog::catalog::Catalog; use i...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/python_call.rs
influxdb3_system_tables/src/python_call.rs
use arrow_array::{ArrayRef, BooleanArray, RecordBatch, StringArray}; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use async_trait::async_trait; use datafusion::common::Result; use datafusion::logical_expr::Expr; use influxdb3_catalog::log::TriggerDefinition; use influxdb3_py_api::logging::ProcessingEngineLog...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/nodes.rs
influxdb3_system_tables/src/nodes.rs
use std::sync::Arc; use arrow::array::{ GenericListBuilder, StringViewBuilder, TimestampMillisecondBuilder, UInt32Builder, UInt64Builder, }; use arrow_array::RecordBatch; use arrow_schema::{DataType, Field, Schema, SchemaRef, TimeUnit}; use datafusion::{error::DataFusionError, prelude::Expr}; use influxdb3_cat...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/generations.rs
influxdb3_system_tables/src/generations.rs
use arrow::array::{UInt8Builder, UInt64Builder}; use arrow_array::RecordBatch; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use datafusion::{error::DataFusionError, prelude::Expr}; use iox_system_tables::IoxSystemTable; use std::{sync::Arc, time::Duration}; use influxdb3_catalog::catalog::Catalog; #[derive...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/distinct_caches.rs
influxdb3_system_tables/src/distinct_caches.rs
use std::sync::Arc; use arrow::array::{GenericListBuilder, StringViewBuilder, UInt16Builder, UInt64Builder}; use arrow_array::{ArrayRef, RecordBatch}; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use datafusion::{error::DataFusionError, prelude::Expr}; use influxdb3_catalog::{catalog::DatabaseSchema, log::D...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/plugins.rs
influxdb3_system_tables/src/plugins.rs
use arrow_array::{ArrayRef, Int64Array, RecordBatch, StringArray}; use arrow_schema::{DataType, Field, Schema, SchemaRef}; use async_trait::async_trait; use datafusion::common::Result; use datafusion::logical_expr::Expr; use influxdb3_processing_engine::ProcessingEngineManagerImpl; use iox_system_tables::IoxSystemTable...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/tables.rs
influxdb3_system_tables/src/tables.rs
use std::sync::Arc; use crate::DEFAULT_TIMEZONE; use arrow::array::{StringViewBuilder, UInt64Builder}; use arrow_array::{ArrayRef, RecordBatch}; use arrow_schema::{DataType, Field, Schema, SchemaRef, TimeUnit}; use datafusion::{error::DataFusionError, logical_expr::Expr}; use influxdb3_catalog::catalog::Catalog; use i...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_system_tables/src/influxdb_schema.rs
influxdb3_system_tables/src/influxdb_schema.rs
//! System table for exposing database schema information using InfluxDB terminology. //! //! This module provides the `system.influxdb_schema` table which presents column //! information using InfluxDB's data model terminology (measurement, tag, field, etc.) //! rather than SQL table/column terminology. use std::sync...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/test_helpers.rs
influxdb3_cache/src/test_helpers.rs
use std::sync::Arc; use influxdb3_catalog::catalog::{Catalog, DatabaseSchema, legacy::TableDefinition}; use influxdb3_id::ColumnId; use influxdb3_wal::{Gen1Duration, Row, WriteBatch}; use influxdb3_write::write_buffer::validator::WriteValidator; use iox_time::{MockProvider, Time}; use object_store::memory::InMemory; ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/lib.rs
influxdb3_cache/src/lib.rs
//! Crate holding the various cache implementations used by InfluxDB 3 pub mod distinct_cache; pub mod last_cache; pub mod parquet_cache; #[cfg(test)] mod test_helpers;
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/parquet_cache/mod.rs
influxdb3_cache/src/parquet_cache/mod.rs
//! An in-memory cache of Parquet files that are persisted to object storage use std::{ collections::BinaryHeap, fmt::Debug, ops::Range, sync::{ Arc, atomic::{AtomicI64, AtomicUsize, Ordering}, }, time::Duration, }; use anyhow::bail; use async_trait::async_trait; use bytes::Byte...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/parquet_cache/metrics.rs
influxdb3_cache/src/parquet_cache/metrics.rs
use metric::{Registry, U64Counter, U64Gauge}; #[derive(Debug)] pub(super) struct AccessMetrics { cache_hits: U64Counter, cache_misses: U64Counter, cache_misses_while_fetching: U64Counter, } pub(super) const CACHE_ACCESS_NAME: &str = "influxdb3_parquet_cache_access"; impl AccessMetrics { pub(super) fn...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/distinct_cache/table_function.rs
influxdb3_cache/src/distinct_cache/table_function.rs
use std::{any::Any, sync::Arc}; use arrow::{array::RecordBatch, datatypes::SchemaRef}; use async_trait::async_trait; use datafusion::{ catalog::{Session, TableFunctionImpl, TableProvider, memory::DataSourceExec}, common::{DFSchema, Result, internal_err, plan_err}, datasource::{TableType, memory::MemorySour...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/distinct_cache/mod.rs
influxdb3_cache/src/distinct_cache/mod.rs
//! The Distinct Value Cache holds the distinct values for a column or set of columns on a table mod cache; pub use cache::{CacheError, CreateDistinctCacheArgs}; mod provider; pub use provider::{DistinctCacheProvider, ProviderError, background_catalog_update}; mod table_function; pub use table_function::DISTINCT_CACHE...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/distinct_cache/cache.rs
influxdb3_cache/src/distinct_cache/cache.rs
use std::{ collections::{BTreeMap, BTreeSet, BinaryHeap}, sync::Arc, time::Duration, }; use anyhow::Context; use arrow::{ array::{ArrayRef, RecordBatch, StringViewBuilder}, datatypes::{DataType, Field, SchemaBuilder, SchemaRef}, error::ArrowError, }; use indexmap::IndexMap; use influxdb3_catalo...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/distinct_cache/provider.rs
influxdb3_cache/src/distinct_cache/provider.rs
use std::{collections::HashMap, sync::Arc, time::Duration}; use super::{ CacheError, cache::{CreateDistinctCacheArgs, DistinctCache}, }; use arrow::datatypes::SchemaRef; use influxdb3_catalog::catalog::IfNotDeleted; use influxdb3_catalog::{ catalog::Catalog, channel::CatalogUpdateReceiver, log::{ ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/last_cache/table_function.rs
influxdb3_cache/src/last_cache/table_function.rs
use std::{any::Any, sync::Arc}; use arrow::{array::RecordBatch, datatypes::SchemaRef}; use async_trait::async_trait; use datafusion::{ catalog::{Session, TableFunctionImpl, TableProvider, memory::DataSourceExec}, common::{DFSchema, internal_err, plan_err}, datasource::{TableType, memory::MemorySourceConfig...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/last_cache/mod.rs
influxdb3_cache/src/last_cache/mod.rs
//! The Last-N-Value cache holds the most N recent values for a column or set of columns on a table use influxdb3_id::ColumnId; mod cache; pub use cache::CreateLastCacheArgs; mod metrics; mod provider; pub use provider::{LastCacheProvider, background_catalog_update}; mod table_function; use schema::InfluxColumnType; ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/last_cache/metrics.rs
influxdb3_cache/src/last_cache/metrics.rs
use std::{borrow::Cow, sync::Arc}; use iox_time::{Time, TimeProvider}; use metric::{Attributes, DurationHistogram, Metric}; const LAST_VALUES_CACHE_QUERY_DURATION_METRIC_NAME: &str = "influxdb3_last_values_cache_query_duration"; /// Record various metrics on the last values cache /// /// This holds `Metric<T>` i...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/last_cache/cache.rs
influxdb3_cache/src/last_cache/cache.rs
use std::{ collections::{BTreeSet, HashMap, HashSet, VecDeque}, sync::Arc, time::{Duration, Instant}, }; use arrow::{ array::{ ArrayRef, BooleanBuilder, Float64Builder, GenericByteDictionaryBuilder, Int64Builder, RecordBatch, StringBuilder, StringDictionaryBuilder, TimestampNanosecondBu...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
true
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_cache/src/last_cache/provider.rs
influxdb3_cache/src/last_cache/provider.rs
use std::{collections::HashMap, sync::Arc, time::Duration}; use arrow::{array::RecordBatch, datatypes::SchemaRef as ArrowSchemaRef, error::ArrowError}; use influxdb3_catalog::catalog::legacy; use influxdb3_catalog::{ catalog::Catalog, catalog::IfNotDeleted, channel::CatalogUpdateReceiver, log::{ ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_test_helpers/src/lib.rs
influxdb3_test_helpers/src/lib.rs
pub mod object_store;
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_test_helpers/src/object_store/mod.rs
influxdb3_test_helpers/src/object_store/mod.rs
pub mod mock; use std::{ops::Range, sync::Arc}; use async_trait::async_trait; use bytes::Bytes; use futures::stream::BoxStream; use hashbrown::HashMap; use object_store::{ GetOptions, GetResult, ListResult, MultipartUpload, ObjectMeta, ObjectStore, PutMultipartOptions, PutOptions, PutPayload, PutResult, path:...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_test_helpers/src/object_store/mock.rs
influxdb3_test_helpers/src/object_store/mock.rs
use std::{ fmt::Display, ops::Range, sync::{Arc, Mutex}, }; use bytes::Bytes; use futures::{ Stream, stream::{BoxStream, StreamExt}, }; use object_store::{ GetOptions, GetResult, GetResultPayload, ListResult, MultipartUpload, ObjectMeta, ObjectStore, PutMultipartOptions, PutOptions, PutPayl...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_shutdown/src/lib.rs
influxdb3_shutdown/src/lib.rs
//! Manage application shutdown //! //! This crate provides a set of types for managing graceful application shutdown. //! //! # Coordinate shutdown with the [`ShutdownManager`] type //! //! The [`ShutdownManager`] is used to coordinate shutdown of the process in an ordered fashion. //! When a shutdown is signaled exte...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_types/src/lib.rs
influxdb3_types/src/lib.rs
pub mod http; pub mod logging; pub mod write;
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_types/src/http.rs
influxdb3_types/src/http.rs
use std::{sync::Arc, time::Duration}; use chrono::{DateTime, Utc}; use influxdb3_authz::TokenInfo; use influxdb3_catalog::log::TriggerSettings; use uuid::Uuid; use crate::write::Precision; use hashbrown::HashMap; use hyper::HeaderMap; use hyper::header::ACCEPT; use hyper::http::HeaderValue; pub use influxdb3_catalog:...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_types/src/write.rs
influxdb3_types/src/write.rs
use serde::{Deserialize, Serialize}; /// Nanoseconds has units of nanoseconds (naturally) pub type Nanoseconds = i64; /// TimestampNoUnits has unit information carried separately pub type TimestampNoUnits = i64; /// The precision of the timestamp /// /// Auto is only supported by v3 core and enterprise /// Lowercase ...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false
influxdata/influxdb
https://github.com/influxdata/influxdb/blob/b04c9862a84dd6de486a0a438f87dc275f68f898/influxdb3_types/src/logging.rs
influxdb3_types/src/logging.rs
//! Utilities for structured logging /// Helper to format anyhow error chains on a single line for structured logging. /// /// This wrapper formats an error and all its causes as a single-line string using /// anyhow's alternate format (`{:#}`), which is useful for structured logging systems /// that split on newlines...
rust
Apache-2.0
b04c9862a84dd6de486a0a438f87dc275f68f898
2026-01-04T15:33:27.831918Z
false