{"_id":"mesa","_rev":"95-994c5f5709071cd3429abbb8b139ef82","name":"mesa","description":"simple elegant sql for nodejs","dist-tags":{"latest":"0.7.2"},"versions":{"0.1.0":{"name":"mesa","description":"### immutability","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.1.0","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"mohair":"0.8.1","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"*"},"_id":"mesa@0.1.0","dist":{"shasum":"1664ebb8e1eea01cd8ec54bdbedb1d61e9abcc85","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.1.0.tgz","integrity":"sha512-2OFNW8trzS0OO1hFAJJ16PjWFUJhljM80PMYPlxqU5Vd8VzRRp7Wk/G914FBqCLQq7Wprx76bZamWSnELo5WjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpdseRpv4MfjAVvOyENdu8CkRlBUAsGzjmCXusJZHKuQIgUDvMPVLMEsnBIhY3R0EBl9DcE1bv+kueel6wNQYrHok="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.2.0":{"name":"mesa","description":"mesa provides easy access to data in a postgres database","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.2.0","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.8.2","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.2.0","dist":{"shasum":"daa02a1acbcdb89ac17eecb55be2e951c00b51a4","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.2.0.tgz","integrity":"sha512-R7d43H01lPGE0VTdM9c+f90/H7o8A3u9ahhwIEMtp/OIves5L81gHYIq0osXHO0zinRHxRS+JFThALmoSFPZZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHx3V3Pr43worck0r4vwRylLha1yJybgBz8gy0x5IALQCID1v62VPkTdwtQVoFmh/3+4Na2AdpYWo+UIZ0fmne7XH"}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.3.0":{"name":"mesa","description":"mesa provides easy access to data in a postgres database","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.3.0","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.8.3","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.3.0","dist":{"shasum":"451fc95ffed1ed83a391b65a6902407bbc8e5250","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.3.0.tgz","integrity":"sha512-/0xmS3cz+UPgUvcDHTCc5Hlpuz6iKLW8CmIBEIb0mVPDFbggwFJUta4YvGfLEg2yf1W0iHvJnqyY3Gc+yDcxqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8WzOzUrLZgRvB8FZw1bMAnR9xe4hKeWu9vopFoT7LfgIhALIsWhvglFT/guJPdpuHIcjNAaGKOgC/Q8zJr4mqzl2r"}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.3.1":{"name":"mesa","description":"mesa provides easy access to data in a postgres database","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.3.1","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.8.4","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.3.1","dist":{"shasum":"2ba06289e50c233fc3a5eb3eb7546d90de355711","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.3.1.tgz","integrity":"sha512-/ctcSQ4uMmhdIb+LZAy2toEScqfWW7mdkLHq6A1jna/pMspXYnZonGZ1f2Vj0y7IdVJT6fO9K4P/RTbjCMpjiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRP0AYRvjOlyQoBQoUwxFj2egWAWgKk/3sv/nI/RJFvAIgFVrDRkX0RaRNyOSKJBVXgTsB2s8hh3TT32oUUVMILqk="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.0":{"name":"mesa","description":"mesa provides easy access to a postgres database","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.0","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.8.4","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.0","dist":{"shasum":"1627185d67db9a9d40bcfc48ff279b3077365693","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.0.tgz","integrity":"sha512-GL8EobTTRzRE1UY5BOyGW/2A/cEdOcKcPFQm3cIjA/ImP8u08v4fejm5BLI1vB+TjhoYyqNPl9hsGk3jj3JaRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICerwWEDAQOsVX1GhMBApUFYvk/avwjJ8XPkHbeIFXH5AiEAhgXgDG4IqXOCuXOGy2MLugdZ//Qkh9aMul/ocEBbDzM="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.1":{"name":"mesa","description":"mesa provides easy access to postgres databases","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.1","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.9.0","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.1","dist":{"shasum":"fde33b00390735f401f13992013732ba35d2043f","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.1.tgz","integrity":"sha512-ly+w4PR0UhItqhJtYGp22x2WAtuZNxHi9jkFp8JJnMJKgGjYzbOoaselV79EYBMDLcThf5HTNnVcqQDUG5VQGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV1O8XjAu01j/xcCjCXeOkBVfPNU4ZYIlymP6fQXmdzAIhAPGPnFxMXDu8iLAhvdRey0lz4YzUUwyZKoNDFwSpSkxO"}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.2":{"name":"mesa","description":"mesa provides easy access to postgres databases","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.2","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.3.3","mohair":"0.9.1","async":"0.1.22","underscore":"1.3.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.2","dist":{"shasum":"eb9ba5467d9edec0352f517c9f8bf036a746229a","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.2.tgz","integrity":"sha512-SyW2gfH9iUCM+6HL6bjBHMKZn3n8uRhgtgD8LRxjNceBiN8kldbal4AwYYM6HgcmnvoXXK+zDQvehcIq3nytHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8Dl/Dzvt5iF1DBRPxbRAZJMTPP/68O7JB/WU0XklU7AiATFBW9MmFCmET6jsUkKWcAINOnPggqybOBB9A2zAdKEA=="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.3":{"name":"mesa","description":"mesa provides easy access to postgres databases","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.3","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.1","async":"0.1.22","underscore":"1.4.2"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.3","dist":{"shasum":"b2d2fe007798ba128cd1ac3bf4bf70132bb20b3e","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.3.tgz","integrity":"sha512-4sBuNoOSBes8E8jEGkwlzfVzNOGLT8hzmZMd20/kbDgPZPdDm1s561SXVCd1RzHJgq+HQNQfNURqnq5jJw5iew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4rIM40ynHaL6zsp5kc6wxPOMpbTfhoqqY9ro9XgUfkAiEAxOwS+CsmHklvcbu68N+hBKWRfdPnlRZnaNmQbNgcCtE="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.4":{"name":"mesa","description":"mesa provides easy access to postgres databases","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.4","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.1","async":"0.1.22","underscore":"1.4.2"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.4","dist":{"shasum":"c02dca6e618f540cad3675a7bcf6a18dc4bab8b4","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.4.tgz","integrity":"sha512-hOK91C1VWcOQLytKY7eFg1nzRhm2cjs3pUhfPoGZwgXsHTKA30927lyUT3ZOubinSYj3iTULNR5HjoNhJfYdXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbN4bmKbmAmFtyTZChxzp0nrN0xHOCSm3MUomDg2uS1AiEA6sFHKd/nrkJi+iGpnYcfotbjfX1xdYR0/JyRh32er5w="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.5":{"name":"mesa","description":"mesa provides easy access to postgres databases","author":{"name":"Maximilian Krüger","email":"kruemaxi@googlemail.com","url":"http://github.com/snd"},"version":"0.4.5","repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.2","async":"0.1.22","underscore":"1.4.2"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.5","dist":{"shasum":"2154558154415388465e5a04cc1c43bd8777e595","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.5.tgz","integrity":"sha512-XvQ09/tGDXJzTKUngyF8rbBO756doNlKe+k4jTCWL9W0wrTQ+kTOm1UschXfDRf4Bphrp8yeyznYSAzeAlKj9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUrGcDd4U5jkcsiJrZMluatMniLkQcRLRDAiNW3JUylAiAf2GQFliTjE8jFy/sR6JF4iVAfb3CeMFYnkw76DnBORg=="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.6":{"name":"mesa","version":"0.4.6","description":"mesa provides easy access to postgres databases","homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.2","async":"0.1.22","underscore":"1.4.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.6","dist":{"shasum":"2437a80aa2ac0175335261202381e5fe7d7620ff","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.6.tgz","integrity":"sha512-zXAiXmaeglaGeR8QfpmPwrkCK+dcDPKOCxXMPRZcJFtXxTqoGpvzSen7pN5pi0zbc94owZ4Q5zRa3AeTIoWv3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkn0dFFlzc3CimiYLCe7OoHrjinGOZjwxn18LFp+KMdQIgEK+ttbFGyLjVsHUglKGo0sLQo1fv5vY9eKYxoYKen94="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.7":{"name":"mesa","version":"0.4.7","description":"mesa provides easy access to postgres databases","homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.3","async":"0.1.22","underscore":"1.4.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.7","dist":{"shasum":"51e82a331e33e0cf92915dd951ed3e6fce24a905","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.7.tgz","integrity":"sha512-0ywTF18qKI6dhSKxiPmzMI5/h46hhMcVKB5oE8Af4u3QlVs6WTyHDn6SDncka5a22P0O4lB7tvXAiC8x8KjYnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/dm5Qk9VKXEEEcnUEt6sJD9oarXDWe0NRgzWxULewXAiEAgu8CSl56KumfNWxCaQfqV+dqWklaw6EeBhj7O61l20s="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.8":{"name":"mesa","version":"0.4.8","description":"mesa provides easy access to postgres databases","homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"coffee-script":"1.4.0","mohair":"0.9.3","async":"0.1.22","underscore":"1.4.3"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.8","dist":{"shasum":"5dd5e222f058ee18a83d063c96d4a6e88de05aa2","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.8.tgz","integrity":"sha512-zx7WMMtW3+jJ9TU3dy56qrzjOY+S4DdtuCkBjxHy9HyJ+13jGXCWmWMYBSdKD78Qi8Hxy84qvz2GOMG4Rmo6Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFg+Yz/7E31vgUssaXNDMn0hc0JfCvFuYSQqlMRbuPJwIhAJQZlo1KdeS14w2Rnv8MQC7HqfW3ERVG5iDDbGHn+ApP"}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.9":{"name":"mesa","version":"0.4.9","description":"mesa provides easy access to postgres databases","homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"coffee-script":"1.5.0","mohair":"0.9.4","async":"0.2.5","underscore":"1.4.4"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.9","dist":{"shasum":"3d87682b3e216fdd9755ee6e1d9f9af4709511f6","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.9.tgz","integrity":"sha512-+v5sl2nKqzQsu6/oJd10g8HYJ9upfGocI5CEBq+Hzto3SzD+SGeNJDYPlI7RT25FScAg3VjKTn60Bar8JBKndQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIxr+ttVvTo/RVOG89Cx4g4IhjichaQCsP9AGFb95BqAiEAgiw8mRI6JBiqG0hWsWRDbTLHc6MukSeRIIt7cW/osrw="}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.4.10":{"name":"mesa","version":"0.4.10","description":"mesa provides easy access to postgres databases","homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"coffee-script":"1.5.0","mohair":"0.9.4","async":"0.2.5","underscore":"1.4.4"},"devDependencies":{"nodeunit":"0.7.4"},"_id":"mesa@0.4.10","dist":{"shasum":"8269769477b6af14559537179ab2e53ffe27124c","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.4.10.tgz","integrity":"sha512-DPajjDB58fDMAplxzjaDLQL/J7oAG8uME8AyEzTGYD3obakXmoi8yNYChAUFS+LL9Q03lTsCSYIRY+/2SVSroA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDdZ0F92pza7WKZLl0yhLkKXukQRaV0sSATse6bzAEQQIhAOfjFNNb3KqEnSTHLbRo80o762h+tfmrxpuwFc/ce7Xe"}]},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.5.0":{"name":"mesa","version":"0.5.0","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","q":"0.9.6","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.5.0","dist":{"shasum":"28255fe372e2fb6b6538307c69ea2be1723a8fe0","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.5.0.tgz","integrity":"sha512-Y7C8V6K725IGRD7GKHsyjuctd9hBUYjnPD3HNFsTUis8tdKGqMOThXWMeNaiQrxO29/Zo1YA8f1T0MAh6vt3Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJLoHYS9Pjsk/4p5V/LA8qcDSZ7X9V6LmROvWp6D//eAiEA+bQF/UjAjmLcFuWE3zq+EUnrZdtYDKKDuZ8IrXsVJ0w="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.5.1":{"name":"mesa","version":"0.5.1","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","q":"0.9.6","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.5.1","dist":{"shasum":"3064cfa7c947a81666a05e54c18cb12575a472be","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.5.1.tgz","integrity":"sha512-qrQXci0v6yKRBShodATQPt7Kjx8Kw1VTIzYJOMZB9TID6p4U4HTKQ9Wg1ruMaSoIqflOtil8RbgTQAJb1OGIhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAiKsKeEk1/eyQCdBz3NS4JdQCuz8oofCGy0G8AdGhbAiEA1RAQj4iiOq08G5JzaFDEbh8WsNnP1q9zII7bPcrne7k="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.5.2":{"name":"mesa","version":"0.5.2","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","q":"0.9.6","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.5.2","dist":{"shasum":"32f958eeda7931c7c12bd8f801f51a0b04553160","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.5.2.tgz","integrity":"sha512-RIvlwXeChpx/9sA0vffcs7NZuwyqZvm4qT/NrQtdkJKvesSX37uWREozgeg3QbGM1DOyeLTGfJyiRO95UF7F/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEYjFlK/XCmeDKirBC0I0vbNce2L+cxNrS0BTw3Uxz4/AiEAj2uFEfTD43e+9MUBSlKLYILkbcSIXPrJcKuPc6C7vRI="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.5.3":{"name":"mesa","version":"0.5.3","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.5.3","dist":{"shasum":"d8dc9e6e5e061e9881c0626ea1ac5b004d4baf92","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.5.3.tgz","integrity":"sha512-BLLFM+DJNO52jpfaIQ2pH50bmtQFVn/71DBUN8JeUJQbK3cbpcxfsPl/I3ZHsE92mcFSJmEQ9Vo/oikWzVDDRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxa09YA0KH+c3R/D9WO1tyWi7LrfKxI3gizSzVrBiUqQIhAJZ54JhUTWwu/wQatIQtNtGfX6OoNeYkP9wzYg+NmSui"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.5.4":{"name":"mesa","version":"0.5.4","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.5.4","dist":{"shasum":"af16b1f9b8a7a2133e61342833930cb8633a836d","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.5.4.tgz","integrity":"sha512-jnl0UiF1v/I148vwhJ+uusa86QO7EP1Pqrra6mZZInFOZ+WAtZFfT/WOS8t1MvSI6q60tb2Cd1P8HiTKZNSI/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHK4T8F/4TY5xW/CPJQskhf7sJKTwOY1y6SVubIxgTeBAiBfOeN9rw0Zm9C4ULpL+sdRqRrrEs44ox5K565DRST+2A=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.6.0":{"name":"mesa","version":"0.6.0","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.6.0","dist":{"shasum":"b8b2c591ad4142575404f984c125b71d7b204687","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.6.0.tgz","integrity":"sha512-xpnGlIu0y1DJWGP819iYd1SYPgs3Ldkp4T7iUSGw+8D/ug6IrhoCuzoYtomjBNZyflYzA17cCif8rbHXesASOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCZZxlwJv7p3BXl3kKXu2MH/rSroVNsw0VCjetLfpL1AiB+oKJTfGwxTh6SDUXqMcfyduyY4Ke0N5FQMw74UXTdig=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.6.1":{"name":"mesa","version":"0.6.1","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.3","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.6.1","dist":{"shasum":"3ef5b6389a92a08593a03e59b16eda690a7f06c5","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.6.1.tgz","integrity":"sha512-9LxsWUsm+JXgH8EtPfNjuktdyNx3TS4JFMqnP+EC0klAN+ok/xm7oNR7m84JZh6+ic6coV9oVertkkEEx74v0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEA8TR+G8sJpDoSMqBjaUzcJCf1zZL6HI9/YrLfT4ADyAiATTCkgfth5ilZdkXCrzQG2bsxAWTj3BV4b93GPtBoxKA=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.6.2":{"name":"mesa","version":"0.6.2","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.10.4","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.6.2","dist":{"shasum":"7e18f75f0a576a058bc2a8c2037c063c8d35dee6","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.6.2.tgz","integrity":"sha512-dWWl6Qbr/QVkDmKIa2fggrGErCNntLYIgmnKugogkTN0V3fUoO2MuIDVmX/t7uAth6S4hAtZwPh6AKSnsyLDuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdfJmarBHBuOxPAU1+7q4FK4JSFH5E5vk7mj9xF/tzLAiBImdTRTEGWYqVIPZDHJ11QqUht8VWlEbvh7Lc+8/oljg=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"directories":{}},"0.7.0":{"name":"mesa","version":"0.7.0","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.0","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.7.0","dist":{"shasum":"368c2c21adeb46d65f9a40c6b439152e968a0281","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.7.0.tgz","integrity":"sha512-ITCknYXFI/AzRpFAfo+8LpLBHfY6lDJzWJY2UX0wR/fHKAfxu+qyu0azVZ6wxKT3MjSGTT0EPp7rua0YyCPSRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY9WgxdzntdW+ONVr38ScFkTkphbQJfbqtUSanb+NPgQIhAJFyERo1CF6S6U1yQ3s8A5XphQ7MUQgHgTCXWDLQKLUQ"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"1.0.0-alpha.1":{"name":"mesa","version":"1.0.0-alpha.1","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.1","underscore":"1.5.2","q":"1.0.0"},"devDependencies":{"coffee-script":"1.7.1","nodeunit":"0.8.4"},"main":"src/mesa","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@1.0.0-alpha.1","dist":{"shasum":"829ae7a14bfbfd0367f5b864e531bfe59e261324","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.1.tgz","integrity":"sha512-qpfAU6+AOGh5GewGCNoeFnR00/OGDcqy+PnKofDoJJDmoj+EGuFNeIrNPltksya5arPV4eEKGn9e3ddYTY6UOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTq2E8kEHrEziVduFcvdPOBPIf4+o5Pl9hZBNY6WwTfQIhAJXyEem4oyo5Tj448lYM6USgHUl7eRx7k+TCFHvu0GWj"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"1.0.0-alpha.2":{"name":"mesa","version":"1.0.0-alpha.2","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.2","underscore":"1.5.2","q":"1.0.0"},"devDependencies":{"coffee-script":"1.7.1","nodeunit":"0.8.4"},"main":"src/mesa","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@1.0.0-alpha.2","dist":{"shasum":"68bb3924de1a905616ab04cda78a453784a9519c","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.2.tgz","integrity":"sha512-7vsFh67AbKF91oSfQ3t0b+By7HXsGo+E00P7aiWbl2lfk9CszQCLUndpwQjQZOejU90fsxyORR3Id67++8LJyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzQr3oNnZZ5TkpnnjuWI6OTCyBJQTpOImyA94wJgY3NAiEA9KwMtp8SCx7gmkUQZvepp0JXAzOSzhDde7h8MKlb4VQ="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"0.7.1":{"name":"mesa","version":"0.7.1","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.0","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@0.7.1","dist":{"shasum":"02b1a451d84561dbbb208ac504c13cc0a641ba74","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.7.1.tgz","integrity":"sha512-Loheggt5xnxnSdW2RfZripzLrwvJHhOiN9+AMFILO4czJCBDu+VTdHzgysbY//p1LDxcbzWrwHaSToockq8foQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2Rt9O8dk0+59N9w7JhhcucXg6uUF1e+Yg4tLx03RWUQIhAJpzbbcO7mNYJLk4UbUWUxHFkMB3JE/KqhZF41wwpqJm"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"1.0.0-alpha.4":{"name":"mesa","version":"1.0.0-alpha.4","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.2","underscore":"1.5.2","bluebird":"1.0.5"},"devDependencies":{"coffee-script":"1.7.1","nodeunit":"0.8.4"},"main":"src/mesa","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@1.0.0-alpha.4","dist":{"shasum":"866234f473f160edb611993b50858e857253f6e1","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.4.tgz","integrity":"sha512-W8GCY1XAaJ4vnJnZoMIc9+Wh/7NaAgTvL5ysEAP3g+KxAj4zjwySwcW2x6/2UFT9ea3UVtz2DyiVnAF0XBD26Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWBINBHIEqhQSGIsBVgG/6SvF14rO/fdnm47ag+ADULAiB05XFROufVGy23rzZgVxLJNZiD6Lm5Ar1em55T/oXv8w=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"1.0.0-alpha.5":{"name":"mesa","version":"1.0.0-alpha.5","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.12.0","underscore":"1.5.2","bluebird":"1.2.1"},"devDependencies":{"coffee-script":"1.7.1","nodeunit":"0.8.4"},"main":"src/mesa","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"_id":"mesa@1.0.0-alpha.5","dist":{"shasum":"dcd45d5adf96f5a5bfe510d6977a5f3e6e6b5bf2","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.5.tgz","integrity":"sha512-9iEtT/oxlxUSRqs0IZ7e1fp9mfwdokiKEvhTx5nFVX0YLWXLY1irUt1oeZbMCzDEY/4z0DvfwAKB1i6zHQ7BgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0IQclvSEyFHwMOcW7ZM2UES7TK/+ryf2FFw6zIobzjAiAfbWXJuNFq6MENRZRa7pjwln+IQF6An1zSunF9lWe6UQ=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}]},"1.0.0-alpha.7":{"name":"mesa","version":"1.0.0-alpha.7","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.0"},"dependencies":{"mohair":"0.12.0","bluebird":"2.3.11"},"devDependencies":{"coffee-script":"1.8.0","nodeunit":"0.9.0","pg":"4.1.0"},"scripts":{"compile":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","clean":"rm -f src/*.js","prepublish":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","pretest":"rm -f src/*.js","test":"node_modules/nodeunit/bin/nodeunit test/*.coffee || :","posttest":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee"},"main":"src/mesa","gitHead":"ae81bde471407d213b331c26a767bc6732965635","_id":"mesa@1.0.0-alpha.7","_shasum":"d678196230c9e614bb278ffbc158e37d9ec27ad4","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"d678196230c9e614bb278ffbc158e37d9ec27ad4","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.7.tgz","integrity":"sha512-PFJqVQdu63s9oJW2zEDD7T9FsPZmZp3FQ2oXJc2NGT0BQXWYwvkZb6MwvCbVcQ1o4jQ5p9FQe6ZlKYSoohtXkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCiOWtx59nPVzFxB5jg0HnyAZ+H4OOfeKZV6JovM09+AiEA+3uwCJZLpZ4bYlskc6Z88WTfCDinrmiUxDATj0Skko0="}]}},"1.0.0-alpha.8":{"name":"mesa","version":"1.0.0-alpha.8","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.0"},"dependencies":{"mohair":"0.13.0-rc.1","bluebird":"2.3.11"},"devDependencies":{"coffee-script":"1.8.0","nodeunit":"0.9.0","pg":"4.1.0"},"scripts":{"compile":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","clean":"rm -f src/*.js","prepublish":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","pretest":"rm -f src/*.js","test":"node_modules/nodeunit/bin/nodeunit test/*.coffee || :","posttest":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee"},"main":"src/mesa","gitHead":"4e49ee9d5b7273c9edfa3f6f44037c084bc29e0c","_id":"mesa@1.0.0-alpha.8","_shasum":"aad25e51e20e0150168442d9cff2f9b45362fb92","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"aad25e51e20e0150168442d9cff2f9b45362fb92","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.8.tgz","integrity":"sha512-wMUIMy0sXIiLlbCqnxHzr77UTrQu2mqBhsq54Xbv+ghmEj37h2MjlrECcKDlL6IScui6yKHAlvhG0DjyGPZS5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVzoeG18cgD1aOExaTkE+R8uTJ8vf/aaEy4Sh7cHq66wIgAr129Q4BEoWRTXeIXcoparf6OwRAIikcIukHbr9XLUM="}]}},"1.0.0-alpha.9":{"name":"mesa","version":"1.0.0-alpha.9","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.10.0"},"dependencies":{"mohair":"0.13.0-rc.1","bluebird":"2.4.0"},"devDependencies":{"coffee-script":"1.8.0","nodeunit":"0.9.0","pg":"4.1.1"},"scripts":{"compile":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","clean":"rm -f src/*.js","prepublish":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","pretest":"rm -f src/*.js","test":"node_modules/nodeunit/bin/nodeunit test/*.coffee || :","posttest":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee"},"main":"src/mesa","gitHead":"b085ee498d387731900d88875b726edef16e0fe9","_id":"mesa@1.0.0-alpha.9","_shasum":"3d0cf7d46e9922f58d917a4109e2114ead97f0bc","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"3d0cf7d46e9922f58d917a4109e2114ead97f0bc","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.9.tgz","integrity":"sha512-hb+S2MrcoktEgi7duDb0XC41beQ8QSB2riHzO+g+fsQPfhVir3ayYVElIbEjvG/fVcQP/wJpt3W1oUdEJpz7gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGQsEx/mT11wYcCU8xErHpP6TXYpaZxZnhe6OpipJtjwIgfBVjr0gSh3DMUo+yN/09okDP5dKG3GbawMwwiMZ6meo="}]}},"1.0.0-alpha.10":{"name":"mesa","version":"1.0.0-alpha.10","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.10.0"},"dependencies":{"mohair":"0.13.0-rc.1","bluebird":"2.4.0"},"devDependencies":{"coffee-script":"1.8.0","nodeunit":"0.9.0","pg":"4.1.1"},"scripts":{"compile":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","clean":"rm -f src/*.js","prepublish":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee","pretest":"rm -f src/*.js","test":"node_modules/nodeunit/bin/nodeunit test/*.coffee || :","posttest":"node_modules/coffee-script/bin/coffee --bare --compile --output src src/*.coffee"},"main":"src/mesa","gitHead":"8d6430da06b44072df7cc3000ae606df6efbf6cd","_id":"mesa@1.0.0-alpha.10","_shasum":"998e8c9bc4f9362816c0392682fd457bbb6e80b5","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"998e8c9bc4f9362816c0392682fd457bbb6e80b5","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.10.tgz","integrity":"sha512-D1jSJSNRqtes6TIT6HUU6MWAv1Odng+xstVGUdtg62TaAplNIYA4E4fEkqeRFnPDz2Lu/s7StTMVhaINrLAVoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeh9v9tul/t9aDfmXkfAaQmWu2vjqutMVkIpg5KxqUggIhANjZWC+GYdnn4eekOCHtgcF+cCJPpSzu+U5k0BN+fVl+"}]}},"1.0.0-alpha.11":{"name":"mesa","version":"1.0.0-alpha.11","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.10.0"},"dependencies":{"mohair":"0.13.0-rc.2","bluebird":"2.8.0","lodash":"2.4.1"},"devDependencies":{"coffee-script":"1.8.0","nodeunit":"0.9.0","pg":"4.2.0"},"scripts":{"compile":"node_modules/coffee-script/bin/coffee --bare --compile --output lib/ src/","prepublish":"npm run compile","pretest":"npm run compile","test":"node_modules/nodeunit/bin/nodeunit test/*.coffee"},"main":"lib/mesa","gitHead":"181ae5a67d364e09c43746053e748baed5f6b606","_id":"mesa@1.0.0-alpha.11","_shasum":"00186acc3aacd6767a4f8868fd0213c57f6b09da","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"00186acc3aacd6767a4f8868fd0213c57f6b09da","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.11.tgz","integrity":"sha512-EydCg1UszW4vfoiPfw78NyADCVa4g1SIGgo/CCQCelRQ2NBbGxfmbNT+rm9m6MnQZXx2cvvJwVId4jsJCY5OEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYDt7sKLKwiwGS/S/ieCRG2hIlDx0VPdrRRQs83SrOvwIhAIzSdJNqpc13uN4U+x9zpkNTY6bL5KhLqxmKxxUW5NLi"}]}},"1.0.0-alpha.12":{"name":"mesa","version":"1.0.0-alpha.12","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.10.0"},"dependencies":{"mohair":"0.13.0-rc.2","bluebird":"2.10.1","lodash":"3.10.1"},"devDependencies":{"coffee-script":"1.10.0","pg":"4.4.2","nodeunit":"0.9.1","istanbul":"0.3.21","codecov.io":"0.1.6"},"scripts":{"compile":"coffee --bare --compile --output lib src","prepublish":"npm run compile","pretest":"npm run compile","test":"nodeunit test/*.coffee","test-with-coverage":"istanbul cover nodeunit test/*.coffee && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js"},"main":"lib/mesa","gitHead":"dd528b3e9899466c49c993f887db4789fa057e10","_id":"mesa@1.0.0-alpha.12","_shasum":"f2ba2323e3b2429efb9f0ec677580274ecacbcdc","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"f2ba2323e3b2429efb9f0ec677580274ecacbcdc","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.12.tgz","integrity":"sha512-dQ9HZeQ+KAjoDkSgTYbeMmnM0VL1Y4LtuHoHZS1UgaYoxkgovbJwYAg2vNK1oixCg7RKQWXusnZTsTzHh6CN6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwl7Etc4ep3/v26ct+8LEHOzh1akIRaqb63RviZSamSAiEArG7D0Y26wzo2QKN/gFte06Gk5XzIGw8uqLoJgBpwXgM="}]}},"1.0.0-alpha.13":{"name":"mesa","version":"1.0.0-alpha.13","description":"simple sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer","simple"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"license":"MIT","engines":{"node":">=0.10.0"},"dependencies":{"mohair":"0.13.0-rc.2","bluebird":"3.3.3","lodash":"4.6.1"},"devDependencies":{"coffee-script":"1.10.0","pg":"4.5.1","nodeunit":"0.9.1","istanbul":"0.4.2","codecov.io":"0.1.6"},"scripts":{"compile":"coffee --bare --compile --output lib src","prepublish":"npm run compile","pretest":"npm run compile","test":"nodeunit test/*.coffee","test-with-coverage":"istanbul cover nodeunit test/*.coffee && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js"},"main":"lib/mesa","gitHead":"0377b2cbb2bed5a6a2c4c0af310d8578b01429cc","_id":"mesa@1.0.0-alpha.13","_shasum":"0ce3dd106b01a651a929a6deca93c323b75545a2","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"0ce3dd106b01a651a929a6deca93c323b75545a2","tarball":"https://registry.npmjs.org/mesa/-/mesa-1.0.0-alpha.13.tgz","integrity":"sha512-MGskIYS36JBbLV0oZNBu6ykkfXR0uNwkLayVOxoT7bZsrwlCLR9HO73TXaBZZDV8TY54TmbE1U/dcVRffon7uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlGwTmKrE0U+0rt+C8Sr/PfgmWyiKzpV7N14wkJKBipAiEAzesVKrrcpKaLNdbw7JVlc5jl8qqzF1fTNKjBpg6YRcg="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mesa-1.0.0-alpha.13.tgz_1457104104435_0.5137199903838336"}},"0.7.2":{"name":"mesa","version":"0.7.2","description":"simple elegant sql for nodejs","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"homepage":"http://github.com/snd/mesa","author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"licenses":{"type":"MIT","url":"git://github.com/snd/mesa/LICENSE"},"engines":{"node":">=0.8.5"},"dependencies":{"mohair":"0.11.0","underscore":"1.4.4"},"devDependencies":{"coffee-script":"1.6.3","nodeunit":"0.8"},"main":"src/postgres","scripts":{"prepublish":"coffee --bare --compile --output src src/*.coffee","postpublish":"rm src/*.js","pretest":"coffee --bare --compile --output src src/*.coffee && coffee --bare --compile --output test test/*.coffee","posttest":"rm src/*.js && rm test/*.js","test":"nodeunit test/*.js"},"gitHead":"acc7844a2e5e75cafb7755e547574a58f8462854","_id":"mesa@0.7.2","_shasum":"f53cdf277cb46efbe2544731b587b2e5598f2bae","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"snd","email":"kruemaxi@googlemail.com"},"maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"dist":{"shasum":"f53cdf277cb46efbe2544731b587b2e5598f2bae","tarball":"https://registry.npmjs.org/mesa/-/mesa-0.7.2.tgz","integrity":"sha512-NiXZFmzqK15IjCD4epbUkvZOqt+rdtENhqnBZNomjKeoWJYVKwoGM8zl1Sy79VaIv0tcRNYNlw4ceU1sHhJN3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHh6J0iVm9DJO0+HhH3Qqzmr1/iT1o+1JApBeUXsiueBAiA9eiHsi3POPqAEA5nOBQasST5QVXd5qBAFPc8BZhz3XA=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mesa-0.7.2.tgz_1496227048321_0.31908457912504673"}}},"readme":"# mesa\n\n[![Build Status](https://travis-ci.org/snd/mesa.png)](https://travis-ci.org/snd/mesa)\n\n**simple elegant sql for nodejs**\n\nmesa is not an orm. it aims to help as much as possible with the construction, composition and execution of sql queries\nwhile not restricting full access to the underlying database driver and database in any way.\n\nmesa builds on top of [mohair, a simple fluent sql query builder](https://github.com/snd/mohair).\n\nit adds the ability to run queries on connections, process query results, to declare and include\nassociations (`hasOne`, `belongsTo`, `hasMany`, `hasManyThrough`) and more.\n\nmesa has been battle tested in a medium sized (8 heroku dynos) production environment\nfor half a year.\n\nmesa uses criterion for sql-where-conditions.\nconsult the [criterion readme](https://github.com/snd/criterion)\nand [mohair readme](https://github.com/snd/mohair) to get the full picture of what is possible with mesa.\n\n### install\n\n```\nnpm install mesa\n```\n\n### use\n\nmesa has a fluent interface where every method returns a new object.\nno method ever changes the state of the object it is called on.\nthis enables a functional programming style.\n\n#### require\n\n```javascript\nvar mesa = require('mesa');\n```\n\n#### connections\n\n**mesa only works with [node-postgres](https://github.com/brianc/node-postgres) at the moment**\n\ntell mesa how to get a connection from the pool:\n\n```javascript\nvar pg = require('pg');\n\nvar mesaWithConnection = mesa.connection(function(cb) {\n    pg.connect('tcp://username@localhost/database', cb);\n});\n\n```\n\n`mesaWithConnection` will now use the provided function to get connections\nfor the commands you execute.\nthese connections are under mesa's control.\nmesa will [properly call done()](https://github.com/brianc/node-postgres/wiki/pg#connectfunction-callback) on every connection it has obtained from the\npool.\n\n#### tables\n\nspecify the table to use:\n\n```javascript\nvar userTable = mesaWithConnection.table('user');\n```\n\n#### command\n\n##### insert\n\n```javascript\nuserTable.\n    .attributes(['name'])\n    .insert({\n        name: 'alice'\n    }, function(err, id) {\n    });\n```\n\n`attributes()` sets the properties to pick from data in the `create()` and `update()`\nmethods. `attributes()` prevents mass assignment\nand must be called before using the `create()` or `update()` methods.\n\n##### insert multiple records\n\n```javascript\nuserTable\n    .attributes(['name'])\n    .insertMany([\n        {name: 'alice'},\n        {name: 'bob'}\n    ], function(err, ids) {\n    });\n```\n\n##### insert with some raw sql\n\n```javascript\nuserTable.\n    .attributes(['name', 'created'])\n    .insert({\n        name: 'alice',\n        created: userTable.raw('NOW()')\n    }, function(err, id) {\n    });\n```\n\n`raw()` can be used to inject arbitrary sql instead of binding a parameter.\n\n##### delete\n\n```javascript\nuserTable.where({id: 3}).delete(function(err) {\n});\n```\n\nsee the [criterion readme](https://github.com/snd/criterion) for all the ways to\nspecify where conditions in mesa.\n\n##### update\n\n```javascript\nuserTable\n    .where({id: 3})\n    .where({name: 'alice'})\n    .update({name: 'bob'}, function(err) {\n    });\n```\n\nmultiple calls to `where` are anded together.\n\n#### query\n\n##### find the first\n\n```javascript\nuserTable.where({id: 3}).first(function(err, user) {\n});\n```\n\n##### test for existence\n\n```javascript\nuserTable.where({id: 3}).exists(function(err, exists) {\n});\n```\n\n##### find all\n\n```javascript\nuserTable.where({id: 3}).find(function(err, user) {\n});\n```\n\n##### select, join, group, order, limit, offset\n\n```javascript\nuserTable\n    .select('user.*, count(project.id) AS project_count')\n    .where({id: 3})\n    .where('name = ?', 'foo')\n    .join('JOIN project ON user.id = project.user_id')\n    .group('user.id')\n    .order('created DESC, name ASC')\n    .limit(10)\n    .offset(20)\n    .find(function(err, users) {\n    });\n```\n\n#### associations\n\n##### has one\n\nuse `hasOne` if the foreign key is in the other table (`addressTable` in this example)\n\n```javascript\nvar userTable = userTable.hasOne('address', addressTable, {\n    primaryKey: 'id',               // optional with default: 'id'\n    foreignKey: 'user_id'           // optional with default: userTable.getTable() + '_id'\n});\n```\n\nthe second argument can be a function which must return a mesa object.\nthis can be used to resolve tables which are not yet created when the association\nis defined.\nit's also a way to do self associations.\n\n##### belongs to\n\nuse `belongsTo` if the foreign key is in the table that `belongsTo`\nis called on (`projectTable` in this example)\n\n```javascript\nvar projectTable = projectTable.belongsTo('user', userTable, {\n    primaryKey: 'id',               // optional with default: 'id'\n    foreignKey: 'user_id'           // optional with default: userTable.getTable() + '_id'\n});\n```\n\n##### has many\n\nuse `hasMany` if the foreign key is in the other table (`userTable` in this example) and\nthere are multiple associated records\n\n```javascript\nvar userTable = userTable.hasMany('projects', projectTable, {\n    primaryKey: 'id',               // optional with default: 'id'\n    foreignKey: 'user_id'           // optional with default: userTable.getTable() + '_id'\n});\n```\n\n##### has many through\n\nuse `hasManyThrough` if the association uses a join table\n\n```javascript\nvar userProjectTable = mesaWithConnection.table('user_project');\n\nvar userTable = userTable.hasManyThrough('projects', projectTable, userProjectTable,\n    primaryKey: 'id',               // optional with default: 'id'\n    foreignKey: 'user_id',          // optional with default: userTable.getTable() + '_id'\n    otherPrimaryKey: 'id',          // optional with default: 'id'\n    otherForeignKey: 'project_id'   // optional with default: projectTable.getTable() + '_id'\n});\n```\n\n##### including associated\n\nassociations are only fetched if you `include` them:\n\n```javascript\nuserTable.includes({address: true}).find(function(err, users) {\n});\n```\n\nincludes can be nested arbitrarily deep:\n\n```javascript\nuserTable\n    .includes({\n        shipping_address: {\n            street: true,\n            town: true\n        },\n        billing_address: true,\n        friends: {\n            billing_address: true\n    }})\n    .find(function(err, users) {\n    });\n```\n\n### advanced use\n\n##### extending mesa's fluent interface\n\nevery mesa object prototypically inherits from the object\nbefore it in the fluent call chain.\n\nthis means that every mesa object is very lightweight since\nit shares structure with objects before it in the fluent call chain.\n\nit also makes it very easy to extend mesa's fluent interface:\n\n```javascript\nvar userTable = mesa.table('user');\n\nuserTable.activeAdmins = function() {\n    return this.where({visible: true, role: 'admin'});\n};\n\nuserTable.whereCreatedBetween = function(from, to) {\n    return this.where('created BETWEEN ? AND ?', from, to);\n};\n\nuserTable\n    .order('created DESC')\n    .activeAdmins()\n    .whereCreatedBetween(new Date(2013, 4, 10), new Date(2013, 4, 12))\n    .find(function(err, users) {\n    });\n```\n\n##### user controlled connections\n\nsometimes, when using a transaction, you need to run multiple commands over multiple tables on the\nsame connection.\n\nuse `getConnection()` to get a raw connection from mesa.\nyou can then run arbitrary sql on that connection.\nuse `connection()` with a connection object to\ntell mesa to explicitely use that connection instead of getting\na new one from the pool:\n\n```javascript\nuserTable.getConnection(function(err, connection, done) {\n    connection.query('BEGIN', function(err) {\n        userTable\n            // use the transactional connection explicitely\n            .connection(connection)\n            .insert({name: 'alice'}, function(err, id) {\n\n                // run more commands in the transaction\n                // possibly on other tables\n\n                connection.query('COMMIT', function(err) {\n                    done();\n                });\n            });\n    });\n});\n```\n\nwhen you are done using the connection you need to call `done()` to\ntell node-postgres to return the connection to the pool.\notherwise you will leak that connection, which is **very bad** since\nyour application will run out of connections and hang.\n\n### license: MIT\n","maintainers":[{"name":"snd","email":"kruemaxi@googlemail.com"}],"time":{"modified":"2022-06-19T17:56:10.577Z","created":"2012-09-18T12:04:28.182Z","0.1.0":"2012-09-18T12:04:38.989Z","0.2.0":"2012-10-09T13:38:02.817Z","0.3.0":"2012-10-22T14:07:51.427Z","0.3.1":"2012-10-25T14:26:07.110Z","0.4.0":"2012-11-05T11:46:30.626Z","0.4.1":"2012-11-07T15:13:06.498Z","0.4.2":"2012-11-07T16:12:01.662Z","0.4.3":"2012-11-14T17:04:37.509Z","0.4.4":"2012-11-19T17:42:17.422Z","0.4.5":"2012-11-26T17:09:00.520Z","0.4.6":"2012-12-05T17:44:13.792Z","0.4.7":"2012-12-06T15:32:19.435Z","0.4.8":"2013-02-02T00:31:42.365Z","0.4.9":"2013-03-07T14:41:37.420Z","0.4.10":"2013-05-30T15:01:44.569Z","0.5.0":"2013-06-23T23:21:46.184Z","0.5.1":"2013-07-08T13:15:05.591Z","0.5.2":"2013-07-09T14:43:33.440Z","0.5.3":"2013-07-09T17:09:20.222Z","0.5.4":"2013-07-09T18:51:26.073Z","0.6.0":"2013-07-10T23:18:18.416Z","0.6.1":"2013-07-11T15:22:22.846Z","0.6.2":"2013-08-26T17:40:35.829Z","0.7.0":"2013-10-04T14:01:35.211Z","1.0.0-alpha.1":"2014-02-05T20:52:09.185Z","1.0.0-alpha.2":"2014-02-14T17:00:31.968Z","0.7.1":"2014-03-18T14:31:13.186Z","1.0.0-alpha.4":"2014-03-30T11:17:35.834Z","1.0.0-alpha.5":"2014-04-01T15:18:23.020Z","1.0.0-alpha.7":"2014-12-17T16:32:25.588Z","1.0.0-alpha.8":"2014-12-17T16:35:00.368Z","1.0.0-alpha.9":"2014-12-29T18:06:14.270Z","1.0.0-alpha.10":"2015-01-06T11:26:16.162Z","1.0.0-alpha.11":"2015-01-19T13:51:05.203Z","1.0.0-alpha.12":"2015-09-24T12:25:00.224Z","1.0.0-alpha.13":"2016-03-04T15:08:27.925Z","0.7.2":"2017-05-31T10:37:29.360Z"},"author":{"name":"Maximilian Krüger","email":"kruemaxi@gmail.com","url":"http://github.com/snd"},"repository":{"type":"git","url":"git://github.com/snd/mesa.git"},"readmeFilename":"README.md","homepage":"http://github.com/snd/mesa","keywords":["sql","postgres","dao","model","orm","fluid","data","data layer"],"bugs":{"url":"http://github.com/snd/mesa/issues","email":"kruemaxi@gmail.com"}}