Skip to content

Commit

Permalink
Merge branch 'release/5.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 23, 2018
2 parents 5c53873 + 7c148f4 commit 29b9161
Show file tree
Hide file tree
Showing 11 changed files with 713 additions and 768 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="5.0.3"></a>
## [5.0.3](https://github.com/adonisjs/adonis-lucid/compare/v5.0.2...v5.0.3) (2018-02-23)



<a name="5.0.2"></a>
## [5.0.2](https://github.com/adonisjs/adonis-lucid/compare/v5.0.1...v5.0.2) (2018-02-09)

Expand Down
14 changes: 14 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,17 @@ util.makePivotTableName = function (modelName, relatedModelName) {
util.existy = function (value) {
return typeof (value) === 'string' ? value.trim().length > 0 : value !== undefined && value !== null
}

/**
* Returns whether the given client supports returning
* fields. This is added to get rid of knex warnings
*
* @method supportsReturning
*
* @param {String} client
*
* @return {Boolean}
*/
util.supportsReturning = function (client) {
return ['sqlite', 'sqlite3'].indexOf(client) === -1
}
Loading

0 comments on commit 29b9161

Please sign in to comment.