Skip to content

set_index added #242

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

Merged
merged 3 commits into from
Apr 26, 2013
Merged

set_index added #242

merged 3 commits into from
Apr 26, 2013

Conversation

pigmej
Copy link
Contributor

@pigmej pigmej commented Apr 25, 2013

Added set_index. This function will take care that there is no other index on given field.

No need to write:

obj.remove_index('field_int', 1)
obj.remove_index('field_int', 2)
obj.add_index('field_int', 3)

Now just:

obj.set_index('field_int', 3)

@pigmej
Copy link
Contributor Author

pigmej commented Apr 25, 2013

(travis fails in other places)

@seancribbs
Copy link

Please add a unit test.

@pigmej
Copy link
Contributor Author

pigmej commented Apr 25, 2013

@seancribbs done.

@seancribbs
Copy link

Great work, @pigmej, thanks!

seancribbs pushed a commit that referenced this pull request Apr 26, 2013
@seancribbs seancribbs merged commit 0d23748 into basho:master Apr 26, 2013
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