Package Products :: Package ZenEvents :: Module interfaces :: Class IDbAccess |
[hide private]
[frames] | no frames]

# Class IDbAccess

source code

    zope.interface.Interface --+
                               |
                              IDbAccess

Database access class that normalizes differences in connecting to databases and handles conversion of their values.

Instance Methods | [hide private]
connect(self, username, password, database, port) Load our database driver and connect to the database. | source code
cleanstring(self, value) Perform any cleanup nessesary on returned database strings. | source code
convert(self, field, value) Perform convertion of a database value if nessesary. | source code
dateString(self, value) Convert dates to their string format. | source code
dateDB(self, value) Convert a date to its database format. | source code
escape(self, value) Prepare string values for db by escaping special characters. | source code
checkConn(self) Check to see if the connection information in product works | source code