Drop SDK APIs already deprecated in v1 ()

This commit is contained in:
Rushmore Mushambi 2024-09-17 12:49:50 +01:00 committed by GitHub
parent 65f650f7d9
commit 7912896c9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();