Skip to main content

Crate narwhal_core

Crate narwhal_core 

Source
Expand description

Database-agnostic abstractions shared across the narwhal workspace.

Drivers implement DatabaseDriver and Connection; the rest of the application interacts with trait objects and is unaware of the underlying database engine.

Re-exports§

pub use future::BoxFuture;
pub use cancel::CancelHandle;
pub use cancel::DynCancelHandle;
pub use capabilities::Capabilities;
pub use connection::Connection;
pub use connection::ConnectionColor;
pub use connection::ConnectionConfig;
pub use connection::ConnectionParams;
pub use connection::DynConnection;
pub use connection::IsolationLevel;
pub use connection::PreConnectStep;
pub use connection::SshConfig;
pub use connection::SslMode;
pub use driver::DatabaseDriver;
pub use driver::DynDatabaseDriver;
pub use error::Error;
pub use error::Result;
pub use query_stream::QueryStream;
pub use schema::Column;
pub use schema::ColumnHeader;
pub use schema::ForeignKey;
pub use schema::Index;
pub use schema::QueryResult;
pub use schema::ReferentialAction;
pub use schema::Row;
pub use schema::Schema;
pub use schema::SchemaCatalog;
pub use schema::Table;
pub use schema::TableKind;
pub use schema::TableSchema;
pub use schema::UniqueConstraint;
pub use ssh::READY_TIMEOUT as SSH_READY_TIMEOUT;
pub use ssh::SshTunnel;
pub use stream::DynRowStream;
pub use stream::RowStream;
pub use value::Value;

Modules§

cancel
capabilities
connection
driver
error
future
Workspace-wide future-shape type alias.
query_stream
Ergonomic streaming wrapper bundling column headers with an async row iterator.
schema
ssh
SSH local-port-forward tunnel powered by the system ssh binary.
stream
value