Class: LWAC::DatabaseConnection
- Inherits:
-
Object
- Object
- LWAC::DatabaseConnection
show all
- Defined in:
- lib/lwac/server/db_conn.rb
Overview
Basic DB connection superclass
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of DatabaseConnection.
10
11
|
# File 'lib/lwac/server/db_conn.rb', line 10
def initialize( config = {} )
end
|
Class Method Details
.create_database(config) ⇒ Object
32
33
|
# File 'lib/lwac/server/db_conn.rb', line 32
def self.create_database( config )
end
|
.database_exists?(config) ⇒ Boolean
35
36
|
# File 'lib/lwac/server/db_conn.rb', line 35
def self.database_exists?( config )
end
|
Instance Method Details
#close ⇒ Object
14
15
|
# File 'lib/lwac/server/db_conn.rb', line 14
def close
end
|
#delete(table_name, where_conditions = "") ⇒ Object
26
27
|
# File 'lib/lwac/server/db_conn.rb', line 26
def delete(table_name, where_conditions = "")
end
|
#execute(sql, immediate = false) ⇒ Object
29
30
|
# File 'lib/lwac/server/db_conn.rb', line 29
def execute(sql, immediate=false)
end
|
#insert(table_name, value_hash) ⇒ Object
17
18
|
# File 'lib/lwac/server/db_conn.rb', line 17
def insert(table_name, value_hash)
end
|
#select(table_name, fields_list, where_conditions = "") ⇒ Object
23
24
|
# File 'lib/lwac/server/db_conn.rb', line 23
def select(table_name, fields_list, where_conditions = "" )
end
|
#update(table_name, value_hash, where_conditions = "") ⇒ Object
20
21
|
# File 'lib/lwac/server/db_conn.rb', line 20
def update(table_name, value_hash, where_conditions = "")
end
|