Skip to content

Commit

Permalink
Fixed searching by unique indexonly columns
Browse files Browse the repository at this point in the history
  • Loading branch information
josiahcarlson committed Jul 2, 2023
1 parent 09cfc6f commit c5d03cb
Show file tree
Hide file tree
Showing 20 changed files with 70 additions and 58 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.0.7
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#----------------------------------- 1.0.7 -----------------------------------
[fixed] searching by unique indexonly columns; previously would try to use the
useless "to_redis" on the column type, which returns none.
#----------------------------------- 1.0.6 -----------------------------------
[added] IndexOnly columns can now have unique indexes generated via keygen.
#----------------------------------- 1.0.5 -----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b1734d745f1e685bf396d6435dc11550
config: 0699c0e9fb1498ca1e44aa547f427644
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.0.6',
VERSION: '1.0.7',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
8 changes: 4 additions & 4 deletions docs/_static/jquery-1.11.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3898,7 +3898,7 @@ jQuery.fn.extend({
elem = this[0],
attrs = elem && elem.attributes;

// Special expectations of .data basically thwart jQuery.access,
// Special expections of .data basically thwart jQuery.access,
// so implement the relevant behavior ourselves

// Gets all values
Expand Down Expand Up @@ -6011,7 +6011,7 @@ function actualDisplay( name, doc ) {
// getDefaultComputedStyle might be reliably used only on attached element
display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?

// Use of this method is a temporary fix (more like optimization) until something better comes along,
// Use of this method is a temporary fix (more like optmization) until something better comes along,
// since it was removed from specification and supported only in FF
style.display : jQuery.css( elem[ 0 ], "display" );

Expand Down Expand Up @@ -6670,7 +6670,7 @@ jQuery.extend({
value += "px";
}

// Fixes #8908, it can be done more correctly by specifying setters in cssHooks,
// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
// but it would mean to define eight (for every problematic property) identical functions
if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
style[ name ] = "inherit";
Expand Down Expand Up @@ -8135,7 +8135,7 @@ if ( !support.style ) {
get: function( elem ) {
// Return undefined in the case of empty string
// Note: IE uppercases css property names, but if we were to .toLowerCase()
// .cssText, that would destroy case sensitivity in URL's, like in "background"
// .cssText, that would destroy case senstitivity in URL's, like in "background"
return elem.style.cssText || undefined;
},
set: function( elem, value ) {
Expand Down
8 changes: 4 additions & 4 deletions docs/columns.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>columns Module &#8212; rom 1.0.6 documentation</title>
<title>columns Module &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand Down Expand Up @@ -33,7 +33,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="rom.html" title="rom Package"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">columns</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -140,7 +140,7 @@ <h3>Navigation</h3>
keygen will be used for both the regular <em>index</em> as well as the
<em>prefix</em> and/or <em>suffix</em> searches</p></li>
<li><p>If <em>prefix</em> is set, you can perform pattern matches over your data.
See documention on <code class="docutils literal notranslate"><span class="pre">Query.like()</span></code> for details.</p></li>
See documentation on <code class="docutils literal notranslate"><span class="pre">Query.like()</span></code> for details.</p></li>
<li><p>Pattern matching over data is only guaranteed to be valid or correct
for ANSI strings that do not include nulls, though we make an effort
to support unicode strings and strings with embedded nulls</p></li>
Expand Down Expand Up @@ -641,7 +641,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="rom.html" title="rom Package"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">columns</span></code> Module</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>exceptions Module &#8212; rom 1.0.6 documentation</title>
<title>exceptions Module &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand Down Expand Up @@ -33,7 +33,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="columns.html" title="columns Module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">exceptions</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -197,7 +197,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="columns.html" title="columns Module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">exceptions</span></code> Module</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &#8212; rom 1.0.6 documentation</title>
<title>Index &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand All @@ -24,7 +24,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
Expand Down Expand Up @@ -553,7 +553,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>Welcome to the documentation for the Redis object Mapper &#8212; rom 1.0.6 documentation</title>
<title>Welcome to the documentation for the Redis object Mapper &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand All @@ -29,7 +29,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="rom.html" title="rom Package"
accesskey="N">next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="#">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Welcome to the documentation for the Redis object Mapper</a></li>
</ul>
</div>
Expand Down Expand Up @@ -202,7 +202,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="rom.html" title="rom Package"
>next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="#">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Welcome to the documentation for the Redis object Mapper</a></li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/indexm.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>index Module &#8212; rom 1.0.6 documentation</title>
<title>index Module &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand Down Expand Up @@ -33,7 +33,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="exceptions.html" title="exceptions Module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">index</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -343,7 +343,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="exceptions.html" title="exceptions Module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">index</span></code> Module</a></li>
</ul>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>model Module &#8212; rom 1.0.6 documentation</title>
<title>model Module &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand Down Expand Up @@ -33,7 +33,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="indexm.html" title="index Module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">model</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -105,7 +105,7 @@ <h3>Navigation</h3>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>If one or more of the column values on an entity that is part of a
unique constrant is None in Python, the unique constraint won’t apply.
unique constraint is None in Python, the unique constraint won’t apply.
This is the typical behavior of nulls in unique constraints inside both
MySQL and Postgres.</p>
</div>
Expand Down Expand Up @@ -289,7 +289,7 @@ <h3>Navigation</h3>
the client on read + display. Or better yet; stick to integers.</p></li>
<li><p><em>refresh_entities</em> - will refresh the entity data on transfer if
<code class="docutils literal notranslate"><span class="pre">True</span></code>-ish</p></li>
<li><p><em>refresh_index</em> - will refresh the update any relevant indexs after
<li><p><em>refresh_index</em> - will refresh the update any relevant indexes after
the transfer, if <code class="docutils literal notranslate"><span class="pre">True</span></code>-ish; implies <code class="docutils literal notranslate"><span class="pre">refresh_entities</span></code></p></li>
</ul>
</div></blockquote>
Expand Down Expand Up @@ -405,7 +405,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="indexm.html" title="index Module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">model</span></code> Module</a></li>
</ul>
</div>
Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Python Module Index &#8212; rom 1.0.6 documentation</title>
<title>Python Module Index &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand All @@ -27,7 +27,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

<title>query Module &#8212; rom 1.0.6 documentation</title>
<title>query Module &#8212; rom 1.0.7 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />

Expand Down Expand Up @@ -33,7 +33,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="model.html" title="model Module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">query</span></code> Module</a></li>
</ul>
</div>
Expand Down Expand Up @@ -348,7 +348,7 @@ <h3>Navigation</h3>
<p>If you use the <code class="docutils literal notranslate"><span class="pre">_namedtuple_data_factory</span></code>, and your
columns include underscore prefixes, they will be stripped. If this
results in a name collision, you <em>will</em> get an exception. If you want
differerent behavior, write your own 20 line factory function that
different behavior, write your own 20 line factory function that
does exactly what you want, and pass it; they are really easy!</p>
</div>
</dd></dl>
Expand Down Expand Up @@ -451,7 +451,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="model.html" title="model Module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">rom 1.0.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">query</span></code> Module</a></li>
</ul>
</div>
Expand Down
Loading

0 comments on commit c5d03cb

Please sign in to comment.