module Prostore::Steps

Defined in:

prostore/steps/codec.cr
prostore/steps/executor.cr
prostore/steps/planner.cr
prostore/steps/step.cr

Class Method Summary

Class Method Detail

def self.requires_transaction?(step : Kind::Any, adapter : Adapter::Base | Nil = nil) : Bool #

Whether this step kind must run inside a transaction.

AddIndex against an adapter that supports CREATE INDEX CONCURRENTLY returns false — Postgres requires that variant to run outside a transaction. Every other step is true because they're single DDL statements that benefit from atomic application.


[View source]