mirror of
https://github.com/knex/knex.git
synced 2025-11-01 10:19:32 +00:00
updated docs for 0.2.1
This commit is contained in:
parent
20d6ae3e7d
commit
cef088a755
@ -1927,7 +1927,7 @@ where key = value.</p>
|
||||
|
||||
<div class="content"><div class='highlight'><pre> insert: <span class="keyword">function</span>(values, returning) {
|
||||
<span class="keyword">if</span> (returning) <span class="keyword">this</span>.returning(returning);
|
||||
<span class="keyword">this</span>.values = <span class="keyword">this</span>._prepValues(values);
|
||||
<span class="keyword">this</span>.values = <span class="keyword">this</span>._prepValues(_.clone(values));
|
||||
<span class="keyword">return</span> <span class="keyword">this</span>._setType(<span class="string">'insert'</span>);
|
||||
},</pre></div></div>
|
||||
|
||||
|
||||
3
gruntfile.js
Normal file
3
gruntfile.js
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-release');
|
||||
};
|
||||
@ -185,7 +185,7 @@
|
||||
<div id="sidebar" class="interface">
|
||||
|
||||
<a class="toc_title" href="#">
|
||||
Knex.js <span class="version">(0.2.0)</span>
|
||||
Knex.js <span class="version">(0.2.1)</span>
|
||||
</a>
|
||||
<ul class="toc_section">
|
||||
<li>» <a href="https://github.com/tgriesser/knex">GitHub Repository</a></li>
|
||||
@ -332,7 +332,7 @@
|
||||
Big thanks to all of the great <a href="https://github.com/tgriesser/knex/graphs/contributors">contributions</a> to the project.
|
||||
</a>
|
||||
|
||||
<h2>Latest Release: 0.2.0 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
<h2>Latest Release: 0.2.1 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
|
||||
<p>
|
||||
Current Develop —
|
||||
@ -1242,6 +1242,11 @@ Knex.Raw('select * from users where id = 1').then(function(resp) {
|
||||
|
||||
<h2 id="changelog">Change Log</h2>
|
||||
|
||||
<p>
|
||||
<b class="header">0.2.1</b> — <small><i>Aug 13, 2013</i></small><br />
|
||||
Fix for an array passed to <tt>insert</tt> being mutated.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b class="header">0.2.0</b> — <small><i>Aug 7, 2013</i></small><br />
|
||||
<b>Breaking changes:</b>
|
||||
|
||||
4
knex.js
4
knex.js
@ -1,4 +1,4 @@
|
||||
// Knex.js 0.2.0
|
||||
// Knex.js 0.2.1
|
||||
//
|
||||
// (c) 2013 Tim Griesser
|
||||
// Knex may be freely distributed under the MIT license.
|
||||
@ -23,7 +23,7 @@
|
||||
};
|
||||
|
||||
// Keep in sync with package.json
|
||||
Knex.VERSION = '0.2.0';
|
||||
Knex.VERSION = '0.2.1';
|
||||
|
||||
// Methods common to both the `Grammar` and `SchemaGrammar` interfaces,
|
||||
// used to generate the sql in one form or another.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user