質問

I'd like to use breeze but I can't find out if it will work with a MySQL + Express + Angular + Node stack. The docs say it will work with MongoDB, but what about MySQL?

役に立ちましたか?

解決 2

@danilodeveloper I'm having to take back your answer because it isn't that simple.

There currently is no out-of-the-box support for Breeze + Node + MySQL. Simply using node-mysql to interface with the DB isn't enough. As per Ward's answer here not using an ORM would be tricky and a ton of code would need to be written along the lines of the breeze-mongodb npm module.

他のヒント

Any standard SQL database like Oracle, MySQL, MariaDB, SQLServer, etc is supported out of the box as long as there is an Entity Framework Provider for it (and almost all of them do). Source

You can integrate the Nodejs backend with Mysql using, for example node-mysql, and to integrate with Angularjs, you can do something like this:

<!-- Angular template -->
<li data-ng-repeat="emp in employees">
    <label>{{emp.FirstName}}</label>
    <label>{{emp.LastName}}</label>
</li>

// bound to employees from query
manager.executeQuery(breeze.EntityQuery.from("Employees"))
       .then(function(data) { $scope.employees = data.results; });
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top