Skip to content

Commit

Permalink
skipOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemDockbite committed Feb 23, 2021
1 parent c27e21f commit 300f120
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# LoopBack Connector

Fork of https://github.com/Dockbite/loopback-connector. This version supports skipping auto order by id. Fork created by dockbite http://dockbite.nl

LoopBack Connector is a set of building blocks simplifying implementation
of datasource-specific connectors like Oracle, MongoDB, REST.

**For full documentation, see the official StrongLoop documentation**:
* [Data sources and connectors](http://docs.strongloop.com/display/public/LB/Database+connectors)

- [Data sources and connectors](http://docs.strongloop.com/display/public/LB/Database+connectors)

## Installation

npm install loopback-connector

## Usage

See [loopback-connector-mysql](https://github.com/strongloop/loopback-connector-mysql)
See [loopback-connector-mysql](https://github.com/strongloop/loopback-connector-mysql)
for an example of connector using this module.

2 changes: 1 addition & 1 deletion lib/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ SQLConnector.prototype.buildSelect = function(model, filter, options) {
selectStmt.merge(whereStmt);
}

if (filter.order) {
if (filter.order && !options.skipOrder) {
selectStmt.merge(this.buildOrderBy(model, filter.order));
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loopback-connector",
"version": "4.9.0",
"name": "@dockbite/loopback-connector",
"version": "4.9.1",
"description": "Building blocks for LoopBack connectors",
"engines": {
"node": ">=8.9"
Expand Down

0 comments on commit 300f120

Please sign in to comment.