Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert to replace #18

Open
selfeky opened this issue Jun 19, 2013 · 0 comments
Open

Insert to replace #18

selfeky opened this issue Jun 19, 2013 · 0 comments

Comments

@selfeky
Copy link

selfeky commented Jun 19, 2013

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

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

No branches or pull requests

1 participant