2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Ci
|
|
|
|
module BuildTraceChunks
|
|
|
|
class Database
|
|
|
|
def available?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def keys(relation)
|
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
|
|
|
def delete_keys(keys)
|
|
|
|
# no-op
|
|
|
|
end
|
|
|
|
|
|
|
|
def data(model)
|
|
|
|
model.raw_data
|
|
|
|
end
|
|
|
|
|
|
|
|
def set_data(model, data)
|
|
|
|
model.raw_data = data
|
|
|
|
end
|
|
|
|
|
|
|
|
def delete_data(model)
|
|
|
|
model.update_columns(raw_data: nil) unless model.raw_data.nil?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|