Module: ChronoModel::Json

Extended by:
Json
Included in:
Json
Defined in:
lib/chrono_model/utils.rb

Instance Method Summary collapse

Instance Method Details

#createObject


23
24
25
26
# File 'lib/chrono_model/utils.rb', line 23

def create
  adapter.execute 'CREATE OR REPLACE LANGUAGE plpythonu'
  adapter.execute File.read(sql 'json_ops.sql')
end

#dropObject


28
29
30
31
# File 'lib/chrono_model/utils.rb', line 28

def drop
  adapter.execute File.read(sql 'uninstall-json_ops.sql')
  adapter.execute 'DROP LANGUAGE IF EXISTS plpythonu'
end