Skip to content

Conversation

@alu
Copy link

@alu alu commented Nov 29, 2019

Add support numeric value to bool conversion

Bool value be expressed as numeric value in MySQL.

Add support ToDato, ToTableName, ToColumnNames to borrowed field contained struct

We need insert values with borrowed value because we do not want to clone String.
For example.

fn insert(mut em: rustorm::EntityManagerMut, message: &str) {
    #[derive(Debug, ToDao, ToTableName, ToColumnNames)]
    struct Row<'b> {
        message: &'b str,
    };

    em.single_insert(&Row { message }).unwrap();
}

add support ToDao, ToTableName, ToColumnNames to borrowed field contained struct
@ivanceras
Copy link
Owner

Thanks for this PR. I'll try to find some time later tonight(maybe) to merge this.

@ivanceras ivanceras merged commit 4b44198 into ivanceras:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants