Skip to main content

saya_types/
lib.rs

1//! Shared public contracts for SAYA CLI.
2
3mod budget;
4mod contract;
5mod dialect;
6mod error;
7mod profile;
8mod query;
9mod schema;
10
11pub use budget::MAX_MESSAGE_BYTES;
12pub use contract::{
13    BindingValidity, CLAIM_PAYLOAD_VERSION, Cardinality, ClaimId, ClaimOrigin, ClaimPayload,
14    ClaimStatus, ColumnRequirement, ColumnRole, ContractError, DatabaseObjectKind,
15    DatabaseObjectRef, DateGrain, FINGERPRINT_VERSION, KnowledgeSlot, KnowledgeState,
16    MAX_MULTI_SLOT_VALUES, MAX_NAME_CHARS, MAX_PROFILE_NAME_CHARS, MAX_REFERENCED_COLUMNS,
17    MAX_TEXT_CHARS, MAX_TIMEZONE_CHARS, OutputStyle, PreferenceScope, PreferenceValue,
18    ProfileIdentity, ReferencedColumn, SchemaBinding, SchemaFingerprint, ScopeRequirement, Scoped,
19    SlotCardinality, SlotError, SlotParseError, SlotValues, is_numeric_type, is_temporal_type,
20    validate_table,
21};
22pub use dialect::SqlDialect;
23pub use error::ConnectionError;
24pub use profile::{DatabaseProfile, MySqlSslMode, PostgresSslMode, SecretRef, SnowflakeAuth};
25pub use query::{QueryRequest, QueryResult};
26pub use schema::{Column, Database, Schema, SchemaTree, Table};