Class: Barthes::Client::Rdb

Inherits:
Object
  • Object
show all
Defined in:
lib/barthes/client/rdb.rb

Direct Known Subclasses

Mysql, Pgsql

Instance Method Summary collapse

Instance Method Details

#action(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/barthes/client/rdb.rb', line 4

def action(params)
	result = []
	response = execute_query(params['query'])
	if response
		response.each do |row|
			result << row
		end
	end
	result
end