Trait dml_tools::sql::DBObject

source ·
pub trait DBObject: Debug + Serialize + Deserialize {
    // Required method
    fn to_sql(&self, type_writer: &dyn TypeWriter) -> String;

    // Provided methods
    fn is_top_level(&self) -> bool { ... }
    fn top_level_to_sql(
        &self,
        _type_writer: &dyn TypeWriter,
        _delayed: &Vec<&Box<&dyn DBObject>>
    ) -> String { ... }
}
Expand description

Trait for serializing a database object to as String

Required Methods§

source

fn to_sql(&self, type_writer: &dyn TypeWriter) -> String

Provided Methods§

source

fn is_top_level(&self) -> bool

source

fn top_level_to_sql( &self, _type_writer: &dyn TypeWriter, _delayed: &Vec<&Box<&dyn DBObject>> ) -> String

Trait Implementations§

source§

impl<'typetag> Serialize for dyn DBObject + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Send + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Send + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn DBObject + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§