02 12 / 2012
When I left the office on last friday evening, I was looking forward to unpacking the just arrived Wii U. On my way home it already bugged me, that I didn’t manage to order an external hard drive for the tons of games I’m going to download soon via the built-in eShop. So I arrived at home and setup the cables for the Wii U. I nicely connected everything with each other, started the console and … waited the next hour for an update of the next-generation Wii. Not super cool, but hey it was an update. Updates are good. So I waited for the progress bar to fill up.
17 10 / 2012
pbackx asked: Hi Sascha, thanks for Sequelize. I've been really getting into it and was wondering whether you already added elegant helper methods to load multiple associations to Sequelize? I'm going to need to write a lot of code like this StackOverflow question "Sequelize, problem getting associations to return". And I'd prefer to use the "right" way from the get-go. Again thanks for this project! Peter
I just released sequelize v1.6.2-alpha-2. there are some reports but about issues but at least the usual find and findAll is working properly. It’s not documneted yet, but you can check the respective tests: https://github.com/sdepold/sequelize/blob/master/spec/dao-factory.spec.js#L384 and https://github.com/sdepold/sequelize/blob/master/spec/dao-factory.spec.js#L554
16 9 / 2012
It’s been a long time since my last post… However, I haven’t been lazy, but worked on multiple things over the last few month. The funniest project in the last weeks/months was my entry for js13kgames called Cubi. In this post I want to present the game and some nice tweaks I added for achieving the right file size.
05 9 / 2012
Today I submitted my entry for the coding competition js13kgames! Would be pretty cool to win that Impact game engine :) Cubi is a classic tower defense game, which comes with 13 types of monsters and 3 types of towers. You can give it a try here :) I will write a summary about some tweaks I added later.
28 3 / 2012
glynnbird asked: In order to may Sequelize scalable, I wondered whether it would be a good idead to (optionally) provide two sets of MySQL connection credentials; one for read-only operations, and the other for write operations. The Sequelize can send its SELECT statements to the read-only connection and write operations to the read-write connection. This would allow applications with lots of read operations to scale out using MySQL slaves. What do you think?
good idea :) can you open a ticket on github?
15 1 / 2012
stumblmumbl asked: Hi, in Sequelize JS is it possible to refer to a model twice from another model? For example, if in Project I would like one User reference for the Manager, and another for the Lead Developer. How would I do that in Sequelize?
Yes this is possible. You have to add the ‘as’-option to your definition. Take a look at this part of the documentation.
Hope that helps
13 1 / 2012
cjfoote asked: Hi, I'm using the Dawanda jQuery RSS code to aggregate an RSS feed to a news website I'm building, and it runs great so long as I only run a single instance of the plugin. However, I'd like to run it twice, once for the story headline and once for the body content. This doesn't seem to work, since each new version of the code I link to overwrites the original version. Any suggestions? I'd appreciate it :)
Hmm that should actually work … Mhh can you please open an issue on github and add a link to page where this problem can be replayed? Thanks a lot :)
04 1 / 2012
Sequelize v1.3.0 was just released and comes with some funky new features and some minor refactorings, which you should know about. Most important things are: Migrations, validations, cross-database support and new event-listener notation.
02 1 / 2012
stumblmumbl asked: Greetings! Not sure if this is the best place to ask, but I've got a sequelize question for you: is there a way to define something like a custom type, or perhaps add a constraint? For example, say I would like to add a column called "gender". I could make it a string, but then anything could be entered. I could make a "genders" table and do "Person.hasOne(Gender)", which is a common DB method, but kind of klunky since you would then have a "genderid" column. Is there a better way? Thanks!
For now it is not possible to add a special data type. But you could use the boolean datatype for the ‘sex’-attribute and add a gender method which evaluates the attribute and returns ‘male’ or ‘female’ as value. Take a look at http://sequelizejs.com/?active=expanding-models#expanding-models and http://sequelizejs.com/?active=data-types#data-types for further information. What do you think?
With best regards,