Class: SqlWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/coopy/sql_wrapper.rb

Instance Method Summary collapse

Instance Method Details

#column_names(tbl) ⇒ Object



11
12
13
# File 'lib/coopy/sql_wrapper.rb', line 11

def column_names(tbl)
  []
end

#delete(tbl, cols, vals) ⇒ Object



5
6
# File 'lib/coopy/sql_wrapper.rb', line 5

def delete(tbl,cols,vals)
end

#except_primary_key(tbl) ⇒ Object



19
20
21
# File 'lib/coopy/sql_wrapper.rb', line 19

def except_primary_key(tbl)
  column_names(tbl)-primary_key(tbl)
end

#fetch(sql) ⇒ Object



23
24
25
# File 'lib/coopy/sql_wrapper.rb', line 23

def fetch(sql)
  []
end

#insert(tbl, cols, vals) ⇒ Object



2
3
# File 'lib/coopy/sql_wrapper.rb', line 2

def insert(tbl,cols,vals)
end

#primary_key(tbl) ⇒ Object



15
16
17
# File 'lib/coopy/sql_wrapper.rb', line 15

def primary_key(tbl)
  []
end

#quote_column(c) ⇒ Object



27
28
29
# File 'lib/coopy/sql_wrapper.rb', line 27

def quote_column(c)
  c.to_s
end

#quote_table(t) ⇒ Object



31
32
33
# File 'lib/coopy/sql_wrapper.rb', line 31

def quote_table(t)
  t.to_s
end

#update(tbl, set_cols, set_vals, cond_cols, cond_vals) ⇒ Object



8
9
# File 'lib/coopy/sql_wrapper.rb', line 8

def update(tbl,set_cols,set_vals,cond_cols,cond_vals)
end