mgutz / mapper Goto Github PK
View Code? Open in Web Editor NEWLightweight, blazing fast node.js ODM on top of mysql-libmysqlclient
License: MIT License
Lightweight, blazing fast node.js ODM on top of mysql-libmysqlclient
License: MIT License
I updated your code to use this:
(clint.js line 129)
this.client = mysql.createConnectionSync(config.host, config.user, config.password, config.database, config.port);
I tried to push to your project but permissions is denied. So I will clone it temporarily until this is fixed.
Thanks
Stuart
Hi, Cool project, but where's the documentation - ie, all the options for relationships, which columns are used for foreign keys, conventions, etc... ?
Seems that composite primary key is not managed.
Am I wrong?
Any chance to see it implemented?
From #5
I was thinking of feature like:
mapper.client.configure(function(client) {
client.setOptionSync(mysql.FLAG_1, val1);
client.setOptionSync(mysql.FLAG_2, val2);
/* ... */
});
It may be useful if one wants to control mysql connection (as example, sometimes I need to set MYSQL_OPT_RECONNECT flag). And with such thing we can avoid much code if we'd implement different client features. What do you think about such configure(fn) feature?
With the latest version on NPM, any queries are outputting to the console:
EIO_Query: pthread_mutex_lock
EIO_Query: pthread_mutex_lock'ed
EIO_Query: pthread_mutex_unlock
EIO_After_Query: in
EIO_After_Query: Unref?
EIO_Query: pthread_mutex_lock
EIO_Query: pthread_mutex_lock'ed
EIO_Query: pthread_mutex_unlock
EIO_After_Query: in
EIO_After_Query: node::MakeCallback
EIO_After_Query: Unref?
execParallel is based on caolan/async's each function, on which is noted:
"Note, that since this function applies the iterator to each item in parallel there is no guarantee that the iterator functions will complete in order."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.