#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum RowLock {
ForUpdate,
ForShare,
}
impl RowLock {
#[cfg(any(feature = "mysql", feature = "postgres"))]
pub(crate) const fn as_sql(self) -> &'static str {
match self {
Self::ForUpdate => "FOR UPDATE",
Self::ForShare => "FOR SHARE",
}
}
}