File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,18 @@ pub use self::transaction_manager::{TransactionManager, AnsiTransactionManager};
1111#[ doc( hidden) ]
1212pub use self :: statement_cache:: { StatementCache , StatementCacheKey , MaybeCached } ;
1313
14+ /// Perform simple operations on a backend.
1415pub trait SimpleConnection {
15- #[ doc( hidden) ]
16+ /// Execute multiple SQL statements within the same string.
17+ ///
18+ /// This function is typically used in migrations where the statements to upgrade or
19+ /// downgrade the database are stored in SQL batch files.
1620 fn batch_execute ( & self , query : & str ) -> QueryResult < ( ) > ;
1721}
1822
23+ /// Perform connections to a backend.
1924pub trait Connection : SimpleConnection + Sized + Send {
25+ /// The backend this connection represents.
2026 type Backend : Backend ;
2127 #[ doc( hidden) ]
2228 type TransactionManager : TransactionManager < Self > ;
You can’t perform that action at this time.
0 commit comments