module Oplogjam

Constants

APPLY_OPS

Operation types

ARRAY_TYPE

SQL

C
D
EMPTY_OBJECT
FIELD_SEPARATOR
H

Operation fields

I
ID

BSON fields

InvalidApplyOps
InvalidCommand
InvalidDelete
InvalidInsert
InvalidNoop
InvalidOperation
InvalidUpdate
LOCAL

Database & collection names

MSG
N
NS
NULL
NUMERIC_INDEX
O
O2
OP
OPLOG
PUBLIC
SCHEMA
SET
TABLE
TS
U
UNKNOWN
UNSET
UPDATE_COLUMN

Recursive updates

Public Class Methods

Document(document) click to toggle source
# File lib/oplogjam.rb, line 59
def self.Document(document)
  raise TypeError, "#{document} is not a BSON Document" unless document.is_a?(BSON::Document)

  document
end
Timestamp(ts) click to toggle source

Strict type coercion for BSON types

# File lib/oplogjam.rb, line 53
def self.Timestamp(ts)
  raise TypeError, "#{ts} is not a BSON Timestamp" unless ts.is_a?(BSON::Timestamp)

  ts
end