mz_compute_types/
lib.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10#![warn(missing_docs)]
11
12//! Shared types for the `mz-compute*` crates
13
14use std::time::Duration;
15
16pub mod config;
17pub mod dataflows;
18pub mod dyncfgs;
19pub mod explain;
20pub mod plan;
21pub mod sinks;
22pub mod sources;
23
24/// The default logging interval for `ComputeReplicaLogging`.
25pub const DEFAULT_COMPUTE_REPLICA_LOGGING_INTERVAL: Duration = Duration::from_secs(1);
26
27/// Identifier of a compute instance.
28pub type ComputeInstanceId = mz_storage_types::instances::StorageInstanceId;