Skip to content

Commit

Permalink
Convert virtual provisioning CTE to use raw SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Feb 16, 2024
1 parent 7f46a0a commit 96983ec
Show file tree
Hide file tree
Showing 10 changed files with 481 additions and 720 deletions.
16 changes: 6 additions & 10 deletions nexus/db-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod console_session;
mod dataset;
mod dataset_kind;
mod db_metadata;
mod deployment;
mod device_auth;
mod digest;
mod disk;
Expand All @@ -35,28 +36,20 @@ mod instance_cpu_count;
mod instance_state;
mod inventory;
mod ip_pool;
mod ipv4_nat_entry;
mod ipv4net;
pub mod ipv6;
mod ipv6net;
mod l4_port_range;
mod macaddr;
mod name;
mod network_interface;
mod omicron_zone_config;
mod oximeter_info;
mod physical_disk;
mod physical_disk_kind;
mod producer_endpoint;
mod project;
mod semver_version;
mod switch_interface;
mod switch_port;
// These actually represent subqueries, not real table.
// However, they must be defined in the same crate as our tables
// for join-based marker trait generation.
mod deployment;
mod ipv4_nat_entry;
mod omicron_zone_config;
pub mod queries;
mod quota;
mod rack;
mod region;
Expand All @@ -65,6 +58,7 @@ mod role_assignment;
mod role_builtin;
pub mod saga_types;
pub mod schema;
mod semver_version;
mod service;
mod service_kind;
mod silo;
Expand All @@ -80,6 +74,8 @@ mod sled_underlay_subnet_allocation;
mod snapshot;
mod ssh_key;
mod switch;
mod switch_interface;
mod switch_port;
mod tuf_repo;
mod unsigned;
mod user_builtin;
Expand Down
7 changes: 0 additions & 7 deletions nexus/db-model/src/queries/mod.rs

This file was deleted.

This file was deleted.

84 changes: 0 additions & 84 deletions nexus/db-queries/src/db/alias.rs

This file was deleted.

1 change: 0 additions & 1 deletion nexus/db-queries/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

//! Facilities for working with the Omicron database
pub(crate) mod alias;
// This is not intended to be public, but this is necessary to use it from
// doctests
pub mod collection_attach;
Expand Down
Loading

0 comments on commit 96983ec

Please sign in to comment.