Skip to content

Commit

Permalink
Update breeze-sequelize demo to use breeze-client@next
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschmitt committed Oct 16, 2019
1 parent 85b8660 commit e339a2b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion breeze-sequelize/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"directories": {},
"dependencies": {
"bluebird": "^3.5.5",
"breeze-client": "^1.7.2",
"breeze-client": "next",
"lodash": "^4.17.15",
"sequelize": "^5.18.1",
"toposort": "^2.0.2"
Expand Down
2 changes: 1 addition & 1 deletion breeze-sequelize/test/ExpressDemo/NorthwindIBMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"metadataVersion": "1.0.5",
"namingConvention": "noChange",
"localQueryComparisonOptions": "caseInsensitiveSQL",
"dataServices": [
"XdataServices": [
{
"serviceName": "breeze/NorthwindIBModel/",
"hasServerMetadata": true,
Expand Down
4 changes: 2 additions & 2 deletions breeze-sequelize/test/ExpressDemo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "0.0.3",
"private": true,
"dependencies": {
"breeze-client": "*",
"breeze-sequelize": "*",
"breeze-client": "next",
"breeze-sequelize": "^0.3.0",
"express": "3.x",
"mysql2": "^1.5.2"
}
Expand Down
3 changes: 3 additions & 0 deletions breeze-sequelize/test/ExpressDemo/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ var fs = require('fs');
var Promise = require("bluebird");
var breezeSequelize = require('breeze-sequelize');

var adapter_model = require("breeze-client/adapter-model-library-backing-store");
adapter_model.ModelLibraryBackingStoreAdapter.register();

var SequelizeManager =breezeSequelize.SequelizeManager;
var SequelizeQuery = breezeSequelize.SequelizeQuery;
var SequelizeSaveHandler = breezeSequelize.SequelizeSaveHandler;
Expand Down
2 changes: 1 addition & 1 deletion breeze-sequelize/test/NorthwindIBMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"metadataVersion": "1.0.5",
"namingConvention": "camelCase",
"localQueryComparisonOptions": "caseInsensitiveSQL",
"dataServices": [
"XdataServices": [
{
"serviceName": "breeze/NorthwindIBModel/",
"hasServerMetadata": true,
Expand Down
4 changes: 2 additions & 2 deletions breeze-sequelize/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"directories": {},
"dependencies": {
"bluebird": "^3.5.5",
"breeze-client": "*",
"breeze-sequelize": "*",
"breeze-client": "next",
"breeze-sequelize": "^0.3.0",
"lodash": "^4.17.15",
"mysql2": "^1.7.0",
"uuid": "^3.3.3"
Expand Down
3 changes: 3 additions & 0 deletions breeze-sequelize/test/testFns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var breezeSequelize = require("breeze-sequelize");
var adapter_model = require("breeze-client/adapter-model-library-backing-store");
var fs = require('fs');
var expect = require('chai').expect;
var _ = require('lodash');
Expand All @@ -13,6 +14,8 @@ var EntityQuery = breeze.EntityQuery;
var Predicate = breeze.Predicate;
var DataService = breeze.DataService

adapter_model.ModelLibraryBackingStoreAdapter.register();

// test predicate extension
breeze.Predicate.extendBinaryPredicateFn( { like: {}, nlike: { alias: 'notLike' }}, function(context, expr1, expr2) {
var e2 = "^" + expr2.replace("%", ".*?") + "$";
Expand Down

0 comments on commit e339a2b

Please sign in to comment.