Michael Baldry

Results 24 issues of Michael Baldry

I would like to do something along the lines of `... ON CONFLICT DO UPDATE SET x = x + 1 ...` Is this currently possible some how? Many thanks

question

Code: ```ruby class WebSession < ActiveRecord::Base self.primary_key = :id upsert_keys [:tenant_id, :session_id] belongs_to :tenant end WebSession.upsert!(tenant: tenant_id, session_id: session_id, value: {}) ``` SQL generated: ```sql INSERT INTO "web_sessions" ("tenant_id", "session_id",...

Fixes #5 Didn't add method missing to pass things through as I didn't want to give the illusion that it would be nesting for anything else other than property. I'm...

It would be more readable if you were able to do something like ``` ruby on :something do property :blah # ... x100 end ``` instead of ``` ruby property...

It'd be nice to be able to build this on other operating systems, and have it simply emulate GPIO. For instance, you could set direction/value and read back from it....

The code that works out if it should use the static hash name looks the file up in the static metadata with `if type == :asset && @metadata["images/#{source}"]` my `static_images_dir`...

question

During testing I found that (at least in my set up), ActiveRecord was re-using connections in which advisory locks were held, so when trying to lock on one again, even...

Using brunch 2.10.8 and brunch-sass 2.10.4, I had an incorrect `@import` path (was `../` once too many times) and the whole compilation just hung and never finished, with the process...

In some (most production, I'd have thought) projects you have a pool of Redis connections from which you can checkout a connection, perform your actions then put it back in...