Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
v0.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
aheuermann committed Mar 2, 2016
1 parent cc6efef commit 073c607
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.9.7

* Adding `patio.parseInt8` and `patio.defaultPrimaryKeyType` options.

# 0.9.6

* Lowering comb-proxy dependency.
Expand Down
8 changes: 8 additions & 0 deletions docs/History.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,14 @@



<h1 id="0-9-7">0.9.7</h1>
<ul>
<li>Adding <code>patio.parseInt8</code> and <code>patio.defaultPrimaryKeyType</code> options.</li>
</ul>
<h1 id="0-9-6">0.9.6</h1>
<ul>
<li>Lowering comb-proxy dependency.</li>
</ul>
<h1 id="0-9-5">0.9.5</h1>
<ul>
<li>Remove <code>id</code> key from being created in a JsonArray</li>
Expand Down
6 changes: 6 additions & 0 deletions docs/patio.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@

patio.camelize = true;
patio.quoteIdentifiers=false;
patio.parseInt8=false
patio.defaultPrimaryKeyType = &quot;integer&quot; //&quot;bigint&quot;

patio.createModel(&quot;my_table&quot;);

Expand Down Expand Up @@ -699,6 +701,8 @@
</td><tr><tr><td>defaultDatabase</td><td>patio.Database</td><td><code>
null
</code></td><td><p>Returns the default database. This is the first database created using <a href='./patio.html#connect'> patio#connect</a>.</p>
</td><tr><tr><td>defaultPrimaryKeyType</td><td>String</td><td></td><td><p>Set the default primary key type when not specified for all databases by default. By default,
patio uses &quot;integer&quot;.</p>
</td><tr><tr><td>identifierInputMethod</td><td>String</td><td></td><td><p>Set the method to call on identifiers going into the database. This affects
how identifiers are sent to the database. So if you use camelCased and the db identifiers are all underscored
use camelize. The method can include</p>
Expand All @@ -722,6 +726,8 @@
<li>Other String instance method names.</li>
</ul>
most database implementations in patio use toLowerCase</p>
</td><tr><tr><td>parseInt8</td><td>Boolean</td><td></td><td><p>Sets whether bigint types should be parsed to a number. An error will be thrown if set and the number is
set and the number is greater than 2^53 or less than -2^53.</p>
</td><tr><tr><td>quoteIdentifiers</td><td>Boolean</td><td></td><td><p>Set whether to quote identifiers for all databases by default. By default,
patio quotes identifiers in all SQL strings.</p>
</td><tr><tr><td>underscore</td><td>function</td><td></td><td><p>Sets the whether or not to underscore identifiers coming from the database and to camelize
Expand Down
2 changes: 1 addition & 1 deletion docs/patio_AlterTableGenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ <h3>
if (isArray(name)) {
return this.__addCompositeForeignKey(name, table, opts);
} else {
return this.addColumn(name, &quot;integer&quot;, merge({table:table}, opts));
return this.addColumn(name, this.db.defaultPrimaryKeyType, merge({table:table}, opts));
}

}
Expand Down
6 changes: 6 additions & 0 deletions docs/patio_Database.html
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,12 @@

}</code></td><td><p>The default options for the connection pool.</p>
</td><tr><tr><td>dataset</td><td>patio.Dataset</td><td></td><td><p>returns an empty adapter specific <a href='./patio_Dataset.html#'> patio.Dataset</a> that can be used to query the <a href='./patio_Database.html#'> patio.Database</a> with.</p>
</td><tr><tr><td>defaultPrimaryKeyType</td><td>String</td><td><code>
"integer"
</code></td><td><p>Default type for primary/foreign keys when a type is not specified.</p>
</td><tr><tr><td>defaultPrimaryKeyTypeDefault</td><td>String</td><td><code>
"integer"
</code></td><td><p>Default type for primary/foreign keys when a type is not specified.</p>
</td><tr><tr><td>defaultSchemaDefault</td><td>{String|patio.sql.Identifier}</td><td><code>function (){
return null;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "patio",
"description": "Patio query engine and ORM",
"version": "0.9.6",
"version": "0.9.7",
"keywords": [
"ORM",
"object relation mapper",
Expand Down

0 comments on commit 073c607

Please sign in to comment.