def autocommit(self):
if len(self.cursors.keys()) == <NUM_LIT:0>:<EOL><INDENT>self.connection.autocommit = True<EOL><DEDENT>else:<EOL><INDENT>raise AttributeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>
This sets the database connection to autocommit. Must be called before
any cursors have been instantiated.