mirror of
https://github.com/knex/knex.git
synced 2025-06-26 22:00:25 +00:00
release 0.6.12
This commit is contained in:
parent
246e767815
commit
7919a1db14
@ -1,5 +1,5 @@
|
||||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Knex=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
||||
// Knex.js 0.6.11
|
||||
// Knex.js 0.6.12
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -81,7 +81,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.11';
|
||||
knex.VERSION = knex.__knex__ = '0.6.12';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
@ -5085,9 +5085,7 @@ ColumnCompiler.prototype.defaultTo = function(value) {
|
||||
value = value.toQuery();
|
||||
} else if (this.type === 'bool') {
|
||||
if (value === 'false') value = 0;
|
||||
value = (value ? 1 : 0);
|
||||
} else if (value === true || value === false) {
|
||||
value = parseInt(value, 10);
|
||||
value = "'" + (value ? 1 : 0) + "'";
|
||||
} else if (this.type === 'json' && _.isObject(value)) {
|
||||
return JSON.stringify(value);
|
||||
} else {
|
||||
@ -6862,7 +6860,6 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
? Uint8Array
|
||||
: Array
|
||||
|
||||
var ZERO = '0'.charCodeAt(0)
|
||||
var PLUS = '+'.charCodeAt(0)
|
||||
var SLASH = '/'.charCodeAt(0)
|
||||
var NUMBER = '0'.charCodeAt(0)
|
||||
@ -6971,9 +6968,9 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
return output
|
||||
}
|
||||
|
||||
module.exports.toByteArray = b64ToByteArray
|
||||
module.exports.fromByteArray = uint8ToBase64
|
||||
}())
|
||||
exports.toByteArray = b64ToByteArray
|
||||
exports.fromByteArray = uint8ToBase64
|
||||
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
|
||||
|
||||
},{}],72:[function(_dereq_,module,exports){
|
||||
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Knex=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
||||
// Knex.js 0.6.11
|
||||
// Knex.js 0.6.12
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -81,7 +81,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.11';
|
||||
knex.VERSION = knex.__knex__ = '0.6.12';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
@ -3349,9 +3349,7 @@ ColumnCompiler.prototype.defaultTo = function(value) {
|
||||
value = value.toQuery();
|
||||
} else if (this.type === 'bool') {
|
||||
if (value === 'false') value = 0;
|
||||
value = (value ? 1 : 0);
|
||||
} else if (value === true || value === false) {
|
||||
value = parseInt(value, 10);
|
||||
value = "'" + (value ? 1 : 0) + "'";
|
||||
} else if (this.type === 'json' && _.isObject(value)) {
|
||||
return JSON.stringify(value);
|
||||
} else {
|
||||
@ -5126,7 +5124,6 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
? Uint8Array
|
||||
: Array
|
||||
|
||||
var ZERO = '0'.charCodeAt(0)
|
||||
var PLUS = '+'.charCodeAt(0)
|
||||
var SLASH = '/'.charCodeAt(0)
|
||||
var NUMBER = '0'.charCodeAt(0)
|
||||
@ -5235,9 +5232,9 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
return output
|
||||
}
|
||||
|
||||
module.exports.toByteArray = b64ToByteArray
|
||||
module.exports.fromByteArray = uint8ToBase64
|
||||
}())
|
||||
exports.toByteArray = b64ToByteArray
|
||||
exports.fromByteArray = uint8ToBase64
|
||||
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
|
||||
|
||||
},{}],43:[function(_dereq_,module,exports){
|
||||
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
|
||||
|
@ -32,7 +32,7 @@
|
||||
<div id="sidebar" class="interface">
|
||||
|
||||
<a class="toc_title" href="#">
|
||||
Knex.js <span class="version">(0.6.11)</span>
|
||||
Knex.js <span class="version">(0.6.12)</span>
|
||||
</a>
|
||||
<ul class="toc_section">
|
||||
<li>» <a href="https://github.com/tgriesser/knex">GitHub Repository</a></li>
|
||||
@ -295,7 +295,7 @@
|
||||
</p>
|
||||
|
||||
|
||||
<h2>Latest Release: 0.6.11 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
<h2>Latest Release: 0.6.12 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
|
||||
<p>
|
||||
Current Develop —
|
||||
@ -2207,6 +2207,11 @@ $ npm test
|
||||
|
||||
<h2 id="changelog">Change Log</h2>
|
||||
|
||||
<p>
|
||||
<b class="header">0.6.12</b> — <small><i>June 10, 2014</i></small><br />
|
||||
Fix for regression with boolean default types in PostgreSQL.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b class="header">0.6.11</b> — <small><i>June 10, 2014</i></small><br />
|
||||
Fix for regression with queries containing multiple <tt>order by</tt> statements in sqlite3.
|
||||
|
4
knex.js
4
knex.js
@ -1,4 +1,4 @@
|
||||
// Knex.js 0.6.11
|
||||
// Knex.js 0.6.12
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -80,7 +80,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.11';
|
||||
knex.VERSION = knex.__knex__ = '0.6.12';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "knex",
|
||||
"version": "0.6.11",
|
||||
"version": "0.6.12",
|
||||
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",
|
||||
"main": "knex.js",
|
||||
"directories": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user