02:20.22 | *** join/#storm m4v (~znc@unaffiliated/m4v) |
02:35.31 | *** join/#storm jdobrien (~john@24.18.88.184.cfl.res.rr.com) |
02:42.14 | *** join/#storm jdobrien_ (~john@184.88.18.24) |
05:39.35 | *** join/#storm Job4ACoWboY (~OuterSpac@c-67-174-145-16.hsd1.ca.comcast.net) |
07:05.48 | *** join/#storm danilos (~danilo@canonical/launchpad/danilos) |
07:08.10 | *** join/#storm jkakar (~jkakar@190.Red-79-154-166.dynamicIP.rima-tde.net) |
07:12.29 | *** join/#storm stub (~stub@193.85.232.179) |
07:16.24 | *** join/#storm ozy (~ozy@c951c039.virtua.com.br) |
07:17.14 | ozy | guys is there a way to do a join with the same table, like one would do in TSQL using AS |
07:17.59 | ozy | like FROM table AS some_name |
07:19.28 | therve | ozy, yes, using ClassAlias |
07:21.03 | ozy | therve, yep, tnx man, i had used it in the past... dont know why i did not think of it sooner |
07:25.42 | *** join/#storm MartinJanda (~chatzilla@martinjanda.selfnet.cz) |
07:55.05 | *** join/#storm danilos (~danilo@canonical/launchpad/danilos) |
07:57.47 | *** join/#storm danilos (~danilo@canonical/launchpad/danilos) |
08:12.46 | *** join/#storm cnf (~cnf@unaffiliated/cnf) |
08:14.20 | cnf | morning |
08:14.33 | cnf | how do i set up a persistent connection with storm? |
08:18.17 | jkakar | cnf: Connections are already persistent, in the sense that once connected they stay connected unless you call store.close() or a DisconnectionError is raised. |
08:18.56 | cnf | yeah, but how do i get the connection, without passing the object around everywhere? |
08:19.00 | jkakar | cnf: If you haven't found it yet, there's a tutorial that describes how to use create_database to create a Store that you can use to run queries: https://storm.canonical.com/Tutorial |
08:19.11 | jkakar | cnf: Passing the Store object, you mean? |
08:19.35 | jkakar | cnf: You need to pass the Store object around if you want to use it. |
08:20.02 | cnf | crap |
08:20.05 | jkakar | Or, you can use the Django or ZStorm integration bits, which provide a way to set/get global stores by name. |
08:20.40 | jkakar | cnf: Another way to do it is, if you have an object that already in a particular store you can do: store = Store.of(my_object) |
08:21.06 | cnf | but then i still need to pass around my_object |
08:23.10 | cnf | i want to avoid passing that stuff around everywhere |
08:24.48 | therve | use a global |
08:26.47 | cnf | hmz |
08:27.48 | cnf | i do something like http://paste.pocoo.org/show/237814/ now |
08:28.00 | cnf | so i can do a get_connection anywhere i want |
08:28.07 | cnf | without passing stuff around etc |
08:41.41 | *** join/#storm zmijunkie (~chatzilla@i59F5D75F.versanet.de) |
09:18.39 | *** join/#storm thumper (~quassel@canonical/launchpad/thumper) |
10:23.39 | *** join/#storm jdobrien (~john@24.18.88.184.cfl.res.rr.com) |
10:25.13 | *** part/#storm MartinJanda (~chatzilla@martinjanda.selfnet.cz) |
12:12.44 | *** join/#storm danilos (~danilo@canonical/launchpad/danilos) |
12:34.38 | *** join/#storm niemeyer (~niemeyer@201-11-213-235.pltce701.dsl.brasiltelecom.net.br) |
14:42.32 | *** join/#storm elmom_ (~elmom@a88-114-234-149.elisa-laajakaista.fi) |
14:52.07 | *** join/#storm m4v (~znc@unaffiliated/m4v) |
15:40.44 | *** join/#storm shaunm (~shaunm@74.83.18.167) |
15:48.28 | *** join/#storm stub (~stub@193.85.232.179) |
18:14.29 | *** join/#storm infobot (~infobot@rikers.org) |
18:14.29 | *** topic/#storm is The Storm Python ORM - http://storm.canonical.com/ - 0.16 released! || Review branches: https://code.launchpad.net/storm/+activereviews || IRC logs: http://ibot.rikers.org/#storm/ || API documentation: http://people.canonical.com/~jkakar/storm/ |
18:52.22 | *** join/#storm jkakar (~jkakar@190.Red-79-154-166.dynamicIP.rima-tde.net) |
19:29.17 | *** join/#storm cnf (~cnf@unaffiliated/cnf) |
19:31.00 | *** part/#storm cnf (~cnf@unaffiliated/cnf) |
19:32.58 | *** join/#storm shaunm (~shaunm@74.83.18.167) |
21:30.35 | *** join/#storm jdobrien (~john@184.88.18.24) |