Sha256: 521d7fbb992858a8d45986db1195b48df35c5d7b3ae737670db24cf32fb151dc

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

require 'dry-types'
require 'pg_export/lib/pg_export/value_objects/dump_file'

class PgExport
  module Types
    include Dry::Types()

    DumpName = Strict::String.constrained(format: /.+_20[0-9]{6}_[0-9]{6}\Z/)
    DumpType = Types::Coercible::String.enum('plain', 'encrypted')
    DumpFile = Types.Instance(PgExport::ValueObjects::DumpFile)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/lib/pg_export/types.rb
pg_export-1.0.0.rc4 lib/pg_export/lib/pg_export/types.rb
pg_export-1.0.0.rc3 lib/pg_export/lib/pg_export/types.rb
pg_export-1.0.0.rc2 lib/pg_export/lib/pg_export/types.rb
pg_export-1.0.0.rc1 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.7 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.6 lib/pg_export/lib/pg_export/types.rb