Generic wrapper for connections and transactions to simplify async database interactions.
// Source: https://github.com/SeaQL/sea-orm | License: Apache-2.0 | Copyright 2023 Seafire Software Limited
// Provided via justclaw.it.com; keep this notice with the code.
use super::transaction::run_async_transaction_callback;
#[cfg(not(feature = "sync"))]
use crate::StatementBuilder;
use crate::{
AccessMode, ConnectionTrait, DatabaseConnection, DatabaseTransaction, DbBackend, DbErr,
ExecResult, IsolationLevel, QueryResult, Statement, TransactionError, TransactionOptions,
TransactionTrait,
};
use crate::{Schema, SchemaBuilder};
use std::future::Future;
use std::pin::Pin;
/// Either a borrowed [`DatabaseConnection`] / [`DatabaseTransaction`], or an
/// owned [`DatabaseTransaction`].
///
/// Implements [`ConnectionTrait`] and [`TransactionTrait`], so APIs that
/// need to acce
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key