airpaulg / relax-net

Automatically exported from code.google.com/p/relax-net
GNU General Public License v3.0
0 stars 0 forks source link

Prefix-less repositories #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a repository of type Entity
2. Create a simple query like (x=>x.value).Le(100).List()
3. The generated JS contains the check 
doc._id.indexOf('entity-') === 0
so it can't walk all documents in DB

What is the expected output? What do you see instead?

An option to exclude prefix (not sure how to integrate this in the API cleanly, 
the best way seems to be a parameter to the Repository constructor

What version of the product are you using? On what operating system?

r84 SVN

Please provide any additional information below.

I can perform this change and submit a patch, if you like the proposed "design"

Original issue reported on code.google.com by wizzard0@gmail.com on 11 Jan 2012 at 10:15

GoogleCodeExporter commented 9 years ago
I've made a patch that adds customizable repository prefix.

However, I reformatted the code accidentally in the process, so it is somewhat 
huge :/ (newlines inserted/removed, etc)

Any suggestions on how to revert the formatting?

Original comment by wizzard0@gmail.com on 12 Jan 2012 at 1:16