<    June 2018     >
Su Mo Tu We Th Fr Sa  
                1  2  
 3  4  5  6  7  8  9  
10 11 12 13 14 15 16  
17 18 19 20 21 22 _2_3  
24 25 26 27 28 29 30
03:46 lopex joined
05:23 eising joined
05:24 fidothe_ joined
05:29 JJonah joined
05:31 mmun joined
05:33 manveru joined
05:36 avdi joined
06:10 kspencer joined
06:19 akahn joined
06:19 lopex joined
06:21 manveru joined
06:21 eising joined
06:21 fidothe_ joined
06:21 JJonah joined
06:21 mmun joined
06:22 fidothe_ joined
06:22 JJonah joined
06:22 mmun joined
06:22 kspencer_ joined
06:23 kspencer_ joined
06:24 avdi joined
07:17 claudiuinberlin joined
08:55 GitHub193 joined
08:55 <GitHub193> [13sequel] 15djay87 commented on issue #1132: @endersonmaia ... 02https://git.io/fG28r
08:55 GitHub193 left
09:34 arne joined
09:34 <arne> what do you actually do if you want to rename a mdeoll
09:34 <arne> if you have require_valid_table true
09:35 <arne> class smth < Sequel::Model(DB[:test]);end; this the approach?
11:55 GitHub142 joined
11:55 <GitHub142> [13sequel] 15endersonmaia commented on issue #1132: Hey @djay87... 02https://git.io/fG266
11:55 GitHub142 left
13:50 <jeremyevans> arne: yep, or just class smth < Sequel::Model(:test);end # if you have a single database
14:18 pdrakeweb joined
14:36 <arne> jeremyevans: thanks
15:10 flips joined
15:16 pdrakewe_ joined
16:38 claudiuinberlin joined
17:37 pdrakeweb joined
18:24 claudiuinberlin joined
18:27 pdrakeweb joined
18:48 pdrakeweb joined
20:39 claudiuinberlin joined
21:05 <adam12> Ooh, a cheeky jeremyevans on Google Groups. Humpday must be going well.
22:17 plujon joined
22:18 <plujon> DB.exist? # how to do this?
22:24 <plujon> Sequel.connect('postgres:///foo) { |db| db.exist? } # I would like to know if the foo database exists; it might have no tables...
22:29 <plujon> exist = nil != Sequel.connect('postgres:///foo'){|db|db.select(1)} rescue nil # maybe this..
22:34 <jeremyevans> plujon: begin; Sequel.connect('postgres:///foo); true; rescue Sequel::DatabaseConnectionError; false end
22:36 <plujon> jeremyevans: Sequel.connect('postgres:///missing') # throws no error for me (using sequel 4.48.0)
22:37 <plujon> Sequel.connect('postgres:///missing').select(1) # throws DatabaseConnectionError
22:37 <jeremyevans> plujon: add :test=>true on Sequel 4 # or better, upgrade to Sequel 5
22:37 <plujon> Ah, okay; I'll upgrade this project to Sequel 5.
22:38 <jeremyevans> plujon: you should always assume that code I post reflects the latest release unless you specifically state you are using an old version :)
22:38 <plujon> Ah, yes. That makes sense.
22:38 <plujon> jeremyevans: Thanks again!
22:40 <* plujon> slaps his own hand for not testing latest version first. Dah!
22:42 <* plujon> ponders whether to use a block to prevent Sequel::DATABASES from being modified
22:45 <plujon> begin; Sequel.connect('postgres:///foo'){}; true; rescue Sequel::DatabaseConnectionError; false end # I'll do this and stop blabbing now.
22:46 <jeremyevans> plujon: yep, definitely better to use a block there
22:46 <plujon> Cool, thanks!
23:34 <lopex> jeremyevans: https://www.youtube.com/watch?v=wTPGW1PNy_Y&t=13m18s the first few minutes are quite a watch
23:34 <lopex> aka the sadness of java business logic implementers
23:40 <lopex> and if only he had ever realized how uncomposable sql is