Module: MarkLogic::Persistence::ClassMethods

Defined in:
lib/marklogic/persistence.rb

Instance Method Summary collapse

Instance Method Details

#admin_connectionObject


19
20
21
# File 'lib/marklogic/persistence.rb', line 19

def admin_connection
  @@admin_connection ||= MarkLogic::Connection.admin_connection
end

#admin_connection=(admin_conn) ⇒ Object


15
16
17
# File 'lib/marklogic/persistence.rb', line 15

def admin_connection=(admin_conn)
  @@admin_connection = admin_conn if admin_conn
end

#manage_connectionObject


11
12
13
# File 'lib/marklogic/persistence.rb', line 11

def manage_connection
  @@manage_connection ||= MarkLogic::Connection.manage_connection
end

#manage_connection=(manage_conn) ⇒ Object


7
8
9
# File 'lib/marklogic/persistence.rb', line 7

def manage_connection=(manage_conn)
  @@manage_connection = manage_conn if manage_conn
end