/
germanubis
/
sqlx
Обзор
Документация
Войти
/
germanubis
/
sqlx
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
sqlx-core/src/any/database.rs
39 строк
1 KB
iamjpotts
refactor(core): Remove lifetime parameter from Arguments trait (#3960)
14 сен 2025, 07:47
Не верифицирован
14 сен 2025, 07:47
8152689
Код
Авторство
О чём код?
use crate::any::{ AnyArgumentBuffer, AnyArguments, AnyColumn, AnyConnection, AnyQueryResult, AnyRow, AnyStatement, AnyTransactionManager, AnyTypeInfo, AnyValue, AnyValueRef, }; use crate::database::{Database, HasStatementCache}; /// Opaque database driver. Capable of being used in place of any SQLx database driver. The actual /// driver used will be selected at runtime, from the connection url. #[derive(Debug)] pub struct Any; impl Database for Any { type Connection = AnyConnection; type TransactionManager = AnyTransactionManager; type Row = AnyRow; type QueryResult = AnyQueryResult; type Column = AnyColumn; type TypeInfo = AnyTypeInfo; type Value = AnyValue; type ValueRef<'r> = AnyValueRef<'r>; type Arguments = AnyArguments; type ArgumentBuffer = AnyArgumentBuffer; type Statement = AnyStatement; const NAME: &'static str = "Any"; const URL_SCHEMES: &'static [&'static str] = &[]; } // This _may_ be true, depending on the selected database impl HasStatementCache for Any {}