Sha256: 7928c34efdfabec7064581c603e4fdd0e164a18bf8e7af5f94e95f4bb8c21ac8

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

module Caco::Postgres
  class UserChangePassword < Trailblazer::Operation
    step ->(ctx, user:, password:, **) {
        ctx[:sql] = "alter user #{user} with password '#{password}';"
      },
      id: :build_sql

    step Subprocess(Caco::Postgres::Sql),
      input: ->(_ctx, sql:, **) {{
        sql: sql,
      }}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caco-0.1.0 lib/caco/postgres/user_change_password.rb