Sha256: 8e107cfa37612d4e40a7a1468f517bfd089c76f4153608497244b8003c6abaef

Contents?: true

Size: 843 Bytes

Versions: 1

Compression:

Stored size: 843 Bytes

Contents

@startuml{seq.png}

actor Client
participant Rails
participant "Connection pool" as cp
participant "<size:10>active_recode_postgresql_xverify</size>" as arsx
participant PostgreSQL

Client -> Rails : Request
activate Rails
Rails -> PostgreSQL : Query
activate PostgreSQL
group neg
  Rails <-- PostgreSQL : <font color=red>PG::ReadOnlySqlTransaction</font>
  deactivate PostgreSQL
  Client <-- Rails : <font color=red>Error</font>
  deactivate Rails
end

Client -> Rails : Request
activate Rails
Rails -> cp : checkout
activate cp
cp -> arsx : active?
activate arsx
arsx -> PostgreSQL : Fetch "transaction_read_only"
activate PostgreSQL
arsx <-- PostgreSQL : "on"
deactivate PostgreSQL
cp <-- arsx : false
deactivate arsx
cp --> PostgreSQL : reconnect!
activate PostgreSQL
deactivate PostgreSQL
Rails <-- cp : Connection
deactivate cp

@enduml

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record_postgresql_xverify-0.2.0 seq.wsd