Skip to content

Insert to replace #18

@selfeky

Description

@selfeky

First, I'd like to say great work.

I have a suggestion:

I think you should change the insert function from

id = db.insert(uriType.getTableName(), "foo", values);

to

id = db.replace(uriType.getTableName(), "foo", values);

This means, as a developer, you no longer need to query the table if the record exists or not to decide weather to do an update or an insert.

This works great with DataDroid bulk operations

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions