Class: HiveSQL::Tx::Custom::Community

Inherits:
HiveSQL::Tx::Custom show all
Defined in:
lib/hive_sql/models/tx/custom/community.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.opsObject


23
24
25
# File 'lib/hive_sql/models/tx/custom/community.rb', line 23

def self.ops
  distinct.normalized_json.pluck(Arel.sql "JSON_VALUE([TxCustoms].[json_metadata], '$[0]') AS ops")
end

Instance Method Details

#payloadObject


27
28
29
# File 'lib/hive_sql/models/tx/custom/community.rb', line 27

def payload
  JSON[][1] rescue nil
end