{"_id":"@brainhubeu/hadron-typeorm","_rev":"27-7c09bd97aa123b15c59236bc003c57af","name":"@brainhubeu/hadron-typeorm","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.1":{"name":"@brainhubeu/hadron-typeorm","version":"0.0.1","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@0.0.1","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"e22614e586420f051074d8a60e226639adbf312a","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-0.0.1.tgz","fileCount":11,"integrity":"sha512-ZFeeUMv64wmiCH3kJCypbau2PvUnb7dO7RQ/DlG9RKwK5o5gP2pXZgu3h/8tm+MBfvMBzF224DijvE2Th2XIVQ==","signatures":[{"sig":"MEYCIQDwFXUxYig2YkZn8diKOp4S4w+aF331ncyagD/mGtUyaQIhAK8dfH5YLQbVCcB0EdsrcLRIlpUszdoFjQ5dN83mcsp6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2fCYCRA9TVsSAnZWagAABIkP/2DBSkxWP2xK6fz91OX1\nNVDOm48Yvpv2isPZ3SgEpf1AXWLz8f5djg4CG8nyqa+qc7IePA3iHZaBs8PX\nS95jVCvfowBhL9yc1Nd5KFo5ZTK/Z8bkJmgGbqUnTHE3ch+wJUvKVX6h/ovc\nnbYrbn50o12OBGbRoMLFB5/Wb9o7h9IvGUvFF54+BqUtC9KKztQkVZjFg4eU\nw1Amf0+L9k0dqkrvMGLQFKysoVb1T3vJS20vKcXHoLaRmB25+u7TPRN8N+dG\nMTVa0I5qI85bsILKjZE/ZbridtKcxCg6QNLY/cHQB2Z8lc9XL0lSi1K4Dq9+\nkNbiqz3n6aSAMhJgDScgd9hzJU9JAv+OX97q4xRYAn1/Njm/vUSUKdV0pFVH\ndr6qfU/L3ZVDGF9sO81juXJPpUFI30r5p+Azg8eTwCk3FecgQg2LfCdidUxL\nM2wfsAoKEDvPumuStmiK+BVsQ+sNtimncVRgOa4/y8XoIA5ndMUVRHe2GZBq\nizMOMCc63i5pyR7JdY5k8KpWdNBHXBVkVzPr1wi9DVl8dCSBNnyVzBMKB3Ve\nHFaxfHEPrRAyT2K89KRz3AF4mq556M6s61kU5pklNY0Qv9Rhzf581vyh/gOV\nZA3yGsadXLM6iHmFSNW+hneA2JpLTcau+Yb+JZmCBuXPt1Rj5ZoLXy31cPAe\nV2L5\r\n=Akpp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist","./LICENSE"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^0.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_0.0.1_1524232343378_0.08153570120212028","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@brainhubeu/hadron-typeorm","version":"0.0.2","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@0.0.2","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"8c99d585d3595c326ccd941546871a2da4c98da6","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-0.0.2.tgz","fileCount":11,"integrity":"sha512-2sqVmFjMZPht/bEMmzJ5rw0/uUo5UJ4huHzaGRbsLbNYbYEbFNgBC+d/+9T7+eTckE2/8ROXrsJ5YD/6HEXelg==","signatures":[{"sig":"MEUCIGa0AYmNXw/MdpmCC2ybDOVLxYnPmf9GVYQLYNeewgJtAiEArG4PW2sh4cbGdFiV7/9fgpc5XoRvr5dHxurSz7kq+rE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8ClqCRA9TVsSAnZWagAAEpYP/jNUSoDGGZwJzC0SR6ga\ncaDfptym1eF5Zc/6XkER6x8LTZcgFP1o6Q7xQd4lX2eXEwgc6MeVE0FoiXMt\nilyiRq1T1fWew13ITc7qglvu3jMxydeCgI23Zaoec4bEE7JqSCkmJ41OR+6G\nYDjSprRn9u7aw75i7+zN5w5E8rTu2VhVhbCL42jkFrKCWENcavVQkA60LXlL\noaR2tW+gi8rCfNRfvMsM/pKdXoDHs+g2lvBUF78hYWh47sVMT8exJbxbxhBR\ndTRc0gy/8stKS1WDXRPb8wsQJ9MrpI1Ds7U6wxJHFLrg8NttLdu5681JAbzt\nJgZEHL7crvt87ogDyrbtHfldpqvDAVcYR4IBx07HDNbCqeY1dZH9vHjT7tXE\n7cSzin33N1NhDisP1eBDfK1QY14BK7SaCpuWkMwck3zG+pHnEIJX03ZO/CWu\nP3mwHlKhyyW+eMaMHauQVwAybUW2Mn/8tf6xdYK+zHkbjlXAPyJira/mSajg\nFoN5V55TkZwu47HkZYrQ6msYzPyXooFpM6xKfvjpSAf1jCzCU0cIs4fI1WLf\nucdF/ZjFWp6PCDPHhK0YnNjq8i0nPsF4JM6PSnY9BG4WIuZTHKDiQGHmcW99\nWhlXBbd7pAqLW204aZ01+E9c/qdBzEE5w+r3Tq0bflH0OSURvth/iWEvuJRv\n3w8P\r\n=Mx76\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist","./LICENSE"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_0.0.2_1525688682091_0.7443980212877803","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@brainhubeu/hadron-typeorm","version":"1.0.0","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@1.0.0","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"f007e5757577e5988d1657592fce0bfa908d3fd1","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-1.0.0.tgz","fileCount":11,"integrity":"sha512-8dk51ST+tWj4zAApBcWJ85jJMUuoIjGo64el7lA613B+EZDkurVHGeSVSrQMSDo49SoG/qBDrdolnMw6sVRZow==","signatures":[{"sig":"MEUCIBrSMgRBpLKZfkLQwFThB5qv6pLc7+8UStA22glWaOOiAiEAtd9dBiTsTVBd+1PznbU2PD2hU6t2eiEyK3y7RtDkarM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFXV5CRA9TVsSAnZWagAAVpcP+wfOkaiGBp+UxngS1EM2\na/MJq1C9DBQ9VGQeJK+6uMDqzRlBA7JzQB8MtFt7ctBQ7S9dWbzSUjStp36W\n5PBvris86BjnGo7NZUZdgqmRyakaUhYuL909de8TqW2B8N72xYX6xSy8zZys\nVhbK3kGgZko4pDxEHiDEw6FC+YrWQwvNHVsOQG8Z0EOH/n2u03Fis6KDT6x7\nrm+bae5wCTq9rS9gaEAsqBRGb3G1f1Q0PcG9maIevnHP7II5tpNS9EgSRAR6\nxf3E/t7DCEEJyxC+lbPhyqvZYQDd3baXO6jqQnpHOLeoNrss2pEIcxA68xZC\nur0BFO6YbyLTTQFZP6r46C8jg2Im691rAZl3m7MG/TFX38194lQynxhnlEUX\nZO4vgngJ1cZPBY8xOSmWqsbJrKztibC4wA01nOM/i96SO8amBvjhqcj8EdGz\njo0rdALfxJxLtq04ZILOO1wnewgai2XVaaU1pRe0JNR98WrWVYqZAemTnPeh\nLK516uzhFJyCKJz7K+KivGVEAu6ashmrepWFO30ivelPs5vM2Wx5pDLt7pMV\nFP6K9s2whDSJQ+eACUQ+txFPcQmge+vAPpf/c0DdXixCpZIEgZo4MEROSe7d\nd5d5Oyrfr14qUQGDfLr3xlsZo0GwIgb1Iu5R3hXCDNdZ68sEDz9Z4tlSGrvq\nzgmr\r\n=xkvJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist","./LICENSE"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_1.0.0_1528132984312_0.47944263786129526","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@brainhubeu/hadron-typeorm","version":"1.0.1","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@1.0.1","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"d787510dfc74a0edb9e0522b972536d96f98922c","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-1.0.1.tgz","fileCount":11,"integrity":"sha512-7yG42gyHvWIX1s9/RZSp1tfTD1yl3k4ttfT0ml+BXd5lkBqknXQIhF+Y6KtW/H4m7DmO6yiIlZmT3AbzjcA8+w==","signatures":[{"sig":"MEUCIDLdqFr5GzuzI9iYI4uOPyPkl104JXo+6Imi0fzK/YIcAiEAlqpedVXOcXXdC9sW+LlukzTvGYgokg7CgeKRiY7/t8M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHpinCRA9TVsSAnZWagAAbYgP/ibk7G0j2IglU1DOInB+\nl+6+pzEdEAhNawPJFH5KW5d5Bmmd001xCz3t/bS3EDjspoLMcUVUXgKF0ZQU\nON8/afb1c2/08ZASKdqPlQr15mix7gSm0SkbRAZDAvOPViBqoLsA5HfjTWcB\nPp+vK74N/Qf5dfbFfSd5Cg/bp5chBZS6djUNpcljaYPCaWdOYZ7necIpkJug\nTN7wBZ93hCnt+mlCUy2bmjVbgJiHN0IO6ZJ+l0GJlVt7H4NluM6EiEY7nOMx\n/p+XlU7asxvyeH/HXh9a0Reyx14giyP0ddhgaSL6ZFx4ehhT9XVXFmbVTDDi\nTZ8xYtBsMcbZTZMSFUZGxOY2f22NDlRWFWicxt7EZN1zpzf3Omi3sTXQUuov\nVMcpsLc35zYKu88TLVTFEZaopMAJeosC8yd8Lb2qau/zXQuD8yaYQzXMgvNX\nrgiaFk1nxCYxOrvbkpy3ijEquEWd6GBMhG4JL8a8SoHDlNqYSwbLOBpwNk4k\ntNVwtaP6hJd0JRVZPW2A+D/cE/GMpJAEvC/d4FBggCPVzJclgmp8QLTn5j7M\nARRcVtvEx6JoCKN2BYKwQNCU5aCTcanXl2MfAj0zKtofwlq+AUrnGwZ58D7U\nh+8P9bkzRb3tPgdzpJocVOCJibQs1Xae9/t+Po68KEqOXSljocgT6uKvgcQu\nwFOx\r\n=5EUi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist","./LICENSE"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_1.0.1_1528731814506_0.9734035920428716","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@brainhubeu/hadron-typeorm","version":"1.0.2","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@1.0.2","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"611a305d78f759b424ca6bd2e1783dac9e92fb6d","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-1.0.2.tgz","fileCount":11,"integrity":"sha512-bZEPLY32eyOxQpFC+PipbnehbgrKg/5SF7eeYTlvdFlF+FkgN6CAl9XfyyiXdW5uMQiIzPqU3ZaqIVOrcC/qgA==","signatures":[{"sig":"MEQCIBeJXEdoHr/FTkNuC1VbUGlRocvsjLJGTayRUnfa5Z9eAiASBTHSHt01CXY22ZcuBIGzAF4z0qeXJdByggQPVoiQzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLKHeCRA9TVsSAnZWagAAFh8QAJQFTP3BEAdUbDffSIPu\n3ytfwu1U6wiUQ1cNI9KNrtUwRGRYvbXzOdufhwfE0pKsb963zYizU06Mv+ha\nNVd6LM4hAnJ3KEnLK5dztD+3Octm3M7VvqfEXQYoxZ/CBckAk/CGKYOQJlkr\nGWoonLaVCT7T7ReRhCwpnlm0V6zB1v5O9dxuLbEND9ZF6a7Cw/2SpHkx5qpD\nNwXC+6xt8Sx21dYP7ki/rpJLOLEGWUGFYg20Iji+wB7k1T+TYvlDAISyVeuM\nQmQ0SuSW7blMueZqwxclIODxL5N84wEs9WrMwfniPtpzgshwInkQKEKhXwZ5\nhRBC23nVfOwLmruM+uSps1H3kZbheJ0hwadGzm5qKXO+KM7aBk45wQ4zbTN0\n9GS0CE1bOilVW4A1R6qjfqfgWobzbBGnzWRLQu7eTERYEmCFObd9jOz6LXWa\nFzrnlq+jEMGPwqg1UMhr035kzDA4rOXcUy0vSw1edG7ZiJvG8ripp4Fz59qW\n3tvDijgkOaJLQJAcLRRoYF2F/CL2WI3Qengxm3b1pWsvdEqwVKaKVl9/8yne\nvENu97zF/Ni4JpKSAjaCA0NHHCENMrAgkDzow/o3encpcpwpxbFup0ZIuwei\nylunMcRcDzNEaa2otDEIaCy9JtvDd8J8/49ZbHHR9BS7+2UgpPWYTCeJ/Njd\nTc91\r\n=zs+T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","files":["dist","./LICENSE"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_1.0.2_1529651678508_0.672024255345004","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@brainhubeu/hadron-typeorm","version":"1.0.3","keywords":["hadron","typeorm","hadron-typeorm"],"author":{"name":"Brainhub"},"license":"MIT","_id":"@brainhubeu/hadron-typeorm@1.0.3","maintainers":[{"name":"brainhub-adam","email":"adam@brainhub.pl"},{"name":"brainhubeu-ci","email":"dev@brainhub.pl"},{"name":"caderek","email":"maciej.caderek@gmail.com"},{"name":"drymek","email":"marcin@dryka.pl"},{"name":"dyoda","email":"lukasz.pluszczewski@gmail.com"},{"name":"kkoscielniak","email":"krystiankoscielniak@gmail.com"},{"name":"piotr-s-brainhub","email":"piotr.sroczkowski@brainhub.pl"},{"name":"szulcd2","email":"szulcd2@gmail.com"},{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"}],"dist":{"shasum":"ec7ddb8dc1d5f7525de458740b1633414d128eb1","tarball":"https://registry.npmjs.org/@brainhubeu/hadron-typeorm/-/hadron-typeorm-1.0.3.tgz","fileCount":11,"integrity":"sha512-xQyjGID2eW5Myzm3H6bJOBSVDV51R6WAYmVV6/2gPs8gUDXGsmzPHBVxKs1TUETn96IUx/gDgi5sOeU3RWfwwg==","signatures":[{"sig":"MEQCIGzLCUQroTuMV5uvPlsx+BgErLcQXSRMsTvL8OyP/ngbAiAXwm99vSvo+giMrGtfhxQ6s4UIEIcJ8ZEN9QpbNCP3Vg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12813,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVI3ZCRA9TVsSAnZWagAA9LUP/Awx6KoTcRRxYJldVbFK\nEWCr7epS7Gg4qpWE4u7A/mdAX21XWkvfx9zCahJZpsqzHkI6DZ7AlMlJ5Jmv\nK56kHr/tTvuxke26uK9uTj/yqVVap8C5gjCcduyFS6NQUoslfJzIChjWo8dL\nC2KlcEAR7iaaL/iT5Gobl2V8TgDlF+Dt9iR4DWt3sA3n30TMr5nsuFSKJRz8\nWNqo7CXbFQWAew5/CVlSTPSkzNr/3yqUyUDoNrVxJARqp6yDBg29Yo3Dafei\nC1gApw4XXfn+q5qXhzb59iYZsz7wl8VQ+4dYZRKB8prN2IYoy92ZxMshKcL1\ncQdaDyDK+BNmXT0P2ASFYuadWz5u9uDctvurhSSMIzMd5HDyrBP0D+X4J3Ov\ncPXCtAd9xpxrv0jp82Wp+r1SnLf1IMLVAUsn10sMFUjODFUVAe0AQq+9/hKZ\nG8CDBEaxKIqdohg6bLMI7SK2bMGbKFHZfgea9B6KnsfqqTpRPhWnpmdOgBa9\nDgdF854ZKUZPTnfkJeGWBUZj0xxYy6v0k0HrPsTQ1DrmPLI3q/b1yvNpzvwO\n2ZvAG/tB/EbkKIelz5kZtwzb0O4jfcVhEhZrWQGJy70h+fv0tAHyUV+q13ze\nYu4SYgjRsNZEJFPoksVYQaWVBqKUL8KENjSYvIsGmk93s4ggY4SpKhiLuYp6\n8cqY\r\n=GBdw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"tsc"},"_npmUser":{"name":"szymon.morawski","email":"szymon.morawski@brainhub.pl"},"_npmVersion":"5.5.1","description":"Hadron typeorm module","directories":{},"_nodeVersion":"8.6.0","dependencies":{"typeorm":"0.1.16","@brainhubeu/hadron-core":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hadron-typeorm_1.0.3_1549045208905_0.726856885078353","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-04-20T13:52:23.316Z","modified":"2024-10-25T13:04:57.567Z","0.0.1":"2018-04-20T13:52:23.577Z","0.0.2":"2018-05-07T10:24:42.154Z","1.0.0":"2018-06-04T17:23:04.441Z","1.0.1":"2018-06-11T15:43:34.571Z","1.0.2":"2018-06-22T07:14:38.571Z","1.0.3":"2019-02-01T18:20:09.010Z"},"author":{"name":"Brainhub"},"license":"MIT","keywords":["hadron","typeorm","hadron-typeorm"],"description":"Hadron typeorm module","maintainers":[{"email":"angjeziorska@gmail.com","name":"angjez"},{"email":"mateusz.jarzebowski.bownik@gmail.com","name":"matt-jb"},{"email":"filip.kublin@brainhub.pl","name":"fkublin"},{"email":"cypherq@gmail.com","name":"benedyktdryl"},{"email":"dariusz.luber@gmail.com","name":"dluber"},{"email":"devops@brainhub.pl","name":"brainhubeu-devops"},{"email":"anna.lach@brainhub.pl","name":"annalach"},{"email":"szymon.morawski@brainhub.pl","name":"szymon.morawski"},{"email":"lukasz.pluszczewski@gmail.com","name":"dyoda"},{"email":"dev@brainhub.pl","name":"brainhubeu-ci"},{"email":"robert_hebel@icloud.com","name":"roberthebel"}],"readme":"## Installation\n\n```bash\nnpm install @brainhubeu/hadron-typeorm --save\n```\n\n[More info about installation](/core/#installation)\n\n## Initializing\n\nPass package as an argument for hadron bootstrapping function:\n\n```javascript\nconst hadronTypeOrm = require('@brainhubeu/hadron-typeorm');\n// ... importing and initializing other components\n\nhadron(expressApp, [hadronTypeOrm], config).then(() => {\n  console.log('Hadron with typeORM initialized');\n});\n```\n\n## Connecting to database\n\nYou can set up a new connection using [connection object](http://typeorm.io/#/connection).\n\n```javascript\n{\n  connectionName: string,\n  type: string,\n  host: string,\n  port: number,\n  username: string,\n  password: string,\n  database: string\n  entitySchemas: entities,\n  synchronize: bool,\n}\n```\n\n* `connectionName` - string that identifies this connection\n* `type` - string that defines type of database, f.e. mysql, mariadb, postgres, sqlite, mongodb,\n* `host` - url to database,\n* `port` - port of database,\n* `username` - username of account to databse,\n* `password` - password to database,\n* `database` - name of database\n* `entities` - array of classes that defines models\n* `entitySchemas` - in case that You are describing models with schemas, put those in this parameter\n* `synchronize` - parameter that defines if database should be automatically synchronized with models\n\nAlso all other parameters available in typeOrm are available. Please take a look at [TypeORM documentation](https://github.com/typeorm/typeorm#creating-a-connection-to-the-database)\n\n## Including database connection in hadron\n\n_NOTE: Also events aren't included in this section so logging into the console is done using setTimeout._\n\nSince we have our connection, we need to include it inside our hadron constructor's config object.\n\n```javascript\nconst hadronTypeOrm = require('@brainhubeu/hadron-typeorm');\n\nconst config = {\n  connection: {\n    /* connection object */\n  },\n};\n\nhadron(expressApp, [hadronTypeOrm], config).then((container) => {\n  console.log('Initialized connection:', container.take('connection'));\n});\n```\n\n## Entities\n\nLet's assume we want to have a simple table **user**\n\n| Field     | Type    |\n| --------- | ------- |\n| 🔑 id     | int     |\n| firstName | varchar |\n| lastName  | varchar |\n\nWe have two options while defining our `entities`.\n\n### Class + Decorators\n\n```typescript\nimport { Entity, Column, PrimaryColumn } from 'typeorm';\n\n@Entity()\nexport class Photo {\n  @PrimaryGeneratedColumn()\n  @Column()\n  id: number;\n\n  @Column() firstName: string;\n\n  @Column() lastName: string;\n}\n```\n\nWhen using this method, while creating connection to database, those classes should be in `entities` parameter.\n\n### Schema Way\n\n```javascript\n// entity/User.js\n\nmodule.exports = {\n  name: 'User',\n  columns: {\n    id: {\n      primary: true,\n      type: 'int',\n      generated: true,\n    },\n    firstName: {\n      type: 'varchar',\n    },\n    lastName: {\n      type: 'varchar',\n    },\n  },\n};\n```\n\nWhen using this method, while creating connection to database, those schemas should be in `entitySchemas` parameter.\n\nFor more details about defining models, please take a look at [TypeORM documentation](http://typeorm.io/#/entities). Especially section about [available types](http://typeorm.io/#/entities/column-types) for each database distribution\n\n## Injecting entities into hadron\n\nTo include our entities in hadron, we simply need to include them in our config object.\nLet's modify the code that we were using to initialize hadron:\n\n```javascript\nconst hadronTypeOrm = require('@brainhubeu/hadron-typeorm');\nconst user = require('./entity/User');\n\nconst config = {\n  connection,\n  entities: [user],\n};\n\nhadron(expressApp, [hadronTypeOrm], config).then((container) => {\n  console.log(\n    'userRepository available:',\n    container.take('userRepository') !== null,\n  );\n  // User entity should be declared under userRepository key and\n  // will be available as a typeORM repository\n});\n```\n\nRepository key in Container depends from name of schema/class and is builded in such way:\n`<schema/class name in camelCase>Repository`\n\nExamples:\n\n```\nUser = userRepository\nSuperUser = superUserRepository\nloremIpsumDolor = loremIpsumDolorRepository\n```\n\n## Repositories\n\nGenerater repositories contain same methods as ones from TypeORM. Please check them out here:\n\n[http://typeorm.io/#/working-with-entity-manager](http://typeorm.io/#/working-with-entity-manager)\n\n## Troubleshooting\n\n### I can' connect to database:\n\n* make sure that connection config has valid data and there is existing database with specified name\n\n### There are no tables in my database\n\n* There are few possible reasons for that. Firstly check if parameter `synchronize` in configuration is set to true.\n\n* Then make sure that connection configuration contains `entities`/`entitySchemas` fields.\n\n* Remember, if You are using class definition of models, You need to put them in `entities` parameter, otherwise (schema method) in `entitySchemas`\n\n### There is an information that I am missing a driver\n\n* If you decided which database You want to use, You need to add a proper driver to your dependencies. For more details check TypeORM [README](https://github.com/typeorm/typeorm#installation) file\n","readmeFilename":"README.md"}