Drop SDK APIs already deprecated in v1 (#4791)
This commit is contained in:
parent
65f650f7d9
commit
7912896c9b
1 changed files with 0 additions and 21 deletions
|
@ -8,7 +8,6 @@ use surrealdb_core::{dbs::Capabilities as CoreCapabilities, iam::Level};
|
|||
#[derive(Debug, Clone, Default)]
|
||||
pub struct Config {
|
||||
pub(crate) strict: bool,
|
||||
pub(crate) notifications: bool,
|
||||
pub(crate) query_timeout: Option<Duration>,
|
||||
pub(crate) transaction_timeout: Option<Duration>,
|
||||
#[cfg(any(feature = "native-tls", feature = "rustls"))]
|
||||
|
@ -45,26 +44,6 @@ impl Config {
|
|||
self
|
||||
}
|
||||
|
||||
/// Set the notifications value of the config to the supplied value
|
||||
#[deprecated(
|
||||
since = "1.1.0",
|
||||
note = "Moved to `Capabilities::with_live_query_notifications()`"
|
||||
)]
|
||||
pub fn set_notifications(mut self, notifications: bool) -> Self {
|
||||
self.notifications = notifications;
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the config to use notifications
|
||||
#[deprecated(
|
||||
since = "1.1.0",
|
||||
note = "Moved to `Capabilities::with_live_query_notifications()`"
|
||||
)]
|
||||
pub fn notifications(mut self) -> Self {
|
||||
self.notifications = true;
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the query timeout of the config
|
||||
pub fn query_timeout(mut self, timeout: impl Into<Option<Duration>>) -> Self {
|
||||
self.query_timeout = timeout.into();
|
||||
|
|
Loading…
Reference in a new issue