Compare commits

..

No commits in common. "d3126f8e2e17de72acbf8f0028c2f4d8687bc5a1" and "16e6d6b97a0d5d0b62a3dfd652956d35374cdb96" have entirely different histories.

3 changed files with 13793 additions and 7 deletions

View file

@ -1,7 +1,7 @@
/// Implement `to_insert` and `to_inserted_async` for the given `$insert_type`, resulting in the given `$result_type`, adding a record to `$table_type`.
#[macro_export]
macro_rules! impl_to_insert {
($insert_type:ty => $result_type:ty: $table_type:expr) => {
($insert_type:ty => $table_type:expr => $result_type:ty) => {
impl $insert_type {
/// Syncronously insert the record into the table, returning the full inserted record.
pub fn to_inserted(self, conn: &mut diesel::pg::PgConnection) -> diesel::QueryResult<$result_type> {

View file

@ -560,9 +560,9 @@ impl MetaProperty {
}
}
impl_to_insert!(MetaSubjectInsert => MetaSubject: schema::meta_subjects::table);
impl_to_insert!(MetaAliasInsert => MetaAlias: schema::meta_aliases::table);
impl_to_insert!(MetaLinkInsert => MetaLink: schema::meta_links::table);
impl_to_insert!(MetaLinkPropertyInsert => MetaLinkProperty: schema::meta_link_properties::table);
impl_to_insert!(MetaLinkTitleInsert => MetaLinkTitle: schema::meta_link_titles::table);
impl_to_insert!(MetaPropertyInsert => MetaProperty: schema::meta_properties::table);
impl_to_insert!(MetaSubjectInsert => schema::meta_subjects::table => MetaSubject);
impl_to_insert!(MetaAliasInsert => schema::meta_aliases::table => MetaAlias);
impl_to_insert!(MetaLinkInsert => schema::meta_links::table => MetaLink);
impl_to_insert!(MetaLinkPropertyInsert => schema::meta_link_properties::table => MetaLinkProperty);
impl_to_insert!(MetaLinkTitleInsert => schema::meta_link_titles::table => MetaLinkTitle);
impl_to_insert!(MetaPropertyInsert => schema::meta_properties::table => MetaProperty);

13786
expansion.rs Normal file

File diff suppressed because it is too large Load diff