LCOV - code coverage report
Current view: top level - storage_controller/src - schema.rs (source / functions) Coverage Total Hit
Test: 6df3fc19ec669bcfbbf9aba41d1338898d24eaa0.info Lines: 0.0 % 80 0
Test Date: 2025-03-12 18:28:53 Functions: 0.0 % 231 0

            Line data    Source code
       1              : // @generated automatically by Diesel CLI.
       2              : 
       3              : pub mod sql_types {
       4            0 :     #[derive(diesel::query_builder::QueryId, diesel::sql_types::SqlType)]
       5              :     #[diesel(postgres_type(name = "pg_lsn", schema = "pg_catalog"))]
       6              :     pub struct PgLsn;
       7              : }
       8              : 
       9            0 : diesel::table! {
      10            0 :     controllers (address, started_at) {
      11            0 :         address -> Varchar,
      12            0 :         started_at -> Timestamptz,
      13            0 :     }
      14            0 : }
      15              : 
      16            0 : diesel::table! {
      17            0 :     metadata_health (tenant_id, shard_number, shard_count) {
      18            0 :         tenant_id -> Varchar,
      19            0 :         shard_number -> Int4,
      20            0 :         shard_count -> Int4,
      21            0 :         healthy -> Bool,
      22            0 :         last_scrubbed_at -> Timestamptz,
      23            0 :     }
      24            0 : }
      25              : 
      26            0 : diesel::table! {
      27            0 :     nodes (node_id) {
      28            0 :         node_id -> Int8,
      29            0 :         scheduling_policy -> Varchar,
      30            0 :         listen_http_addr -> Varchar,
      31            0 :         listen_http_port -> Int4,
      32            0 :         listen_pg_addr -> Varchar,
      33            0 :         listen_pg_port -> Int4,
      34            0 :         availability_zone_id -> Varchar,
      35            0 :         listen_https_port -> Nullable<Int4>,
      36            0 :     }
      37            0 : }
      38              : 
      39            0 : diesel::table! {
      40            0 :     safekeeper_timeline_pending_ops (tenant_id, timeline_id, sk_id) {
      41            0 :         sk_id -> Int8,
      42            0 :         tenant_id -> Varchar,
      43            0 :         timeline_id -> Varchar,
      44            0 :         generation -> Int4,
      45            0 :         op_kind -> Varchar,
      46            0 :     }
      47            0 : }
      48              : 
      49            0 : diesel::table! {
      50            0 :     safekeepers (id) {
      51            0 :         id -> Int8,
      52            0 :         region_id -> Text,
      53            0 :         version -> Int8,
      54            0 :         host -> Text,
      55            0 :         port -> Int4,
      56            0 :         http_port -> Int4,
      57            0 :         availability_zone_id -> Text,
      58            0 :         scheduling_policy -> Varchar,
      59            0 :         https_port -> Nullable<Int4>,
      60            0 :     }
      61            0 : }
      62              : 
      63            0 : diesel::table! {
      64            0 :     tenant_shards (tenant_id, shard_number, shard_count) {
      65            0 :         tenant_id -> Varchar,
      66            0 :         shard_number -> Int4,
      67            0 :         shard_count -> Int4,
      68            0 :         shard_stripe_size -> Int4,
      69            0 :         generation -> Nullable<Int4>,
      70            0 :         generation_pageserver -> Nullable<Int8>,
      71            0 :         placement_policy -> Varchar,
      72            0 :         splitting -> Int2,
      73            0 :         config -> Text,
      74            0 :         scheduling_policy -> Varchar,
      75            0 :         preferred_az_id -> Nullable<Varchar>,
      76            0 :     }
      77            0 : }
      78              : 
      79            0 : diesel::table! {
      80            0 :     use diesel::sql_types::*;
      81            0 :     use super::sql_types::PgLsn;
      82            0 : 
      83            0 :     timelines (tenant_id, timeline_id) {
      84            0 :         tenant_id -> Varchar,
      85            0 :         timeline_id -> Varchar,
      86            0 :         start_lsn -> PgLsn,
      87            0 :         generation -> Int4,
      88            0 :         sk_set -> Array<Nullable<Int8>>,
      89            0 :         new_sk_set -> Nullable<Array<Nullable<Int8>>>,
      90            0 :         cplane_notified_generation -> Int4,
      91            0 :         deleted_at -> Nullable<Timestamptz>,
      92            0 :     }
      93            0 : }
      94              : 
      95              : diesel::allow_tables_to_appear_in_same_query!(
      96              :     controllers,
      97              :     metadata_health,
      98              :     nodes,
      99              :     safekeeper_timeline_pending_ops,
     100              :     safekeepers,
     101              :     tenant_shards,
     102              :     timelines,
     103              : );
        

Generated by: LCOV version 2.1-beta