use super::Index;
use std::{
fmt::{self, Display, Formatter},
sync::Arc,
};
mod parse_constraint;
#[derive(Clone, Debug, PartialEq)]
pub enum Constraint {
PrimaryKey(PrimaryKeyConstraint),
}
#[derive(Clone, Debug, PartialEq)]
pub enum ConstraintMapper {
PrimaryKey,
}
impl Display for ConstraintMapper {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(f, "PrimaryKey")
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct PrimaryKeyConstraint {
pub name: String,
pub index: Arc<Index>,
}