def execute(self,<EOL>command,<EOL>data=None,<EOL>returning=True,<EOL>mapper=dict,<EOL>writeAccess=False,<EOL>dryRun=False,<EOL>locale=None):
command = command.strip()<EOL>if not command:<EOL><INDENT>raise orb.errors.EmptyCommand()<EOL><DEDENT>elif dryRun:<EOL><INDENT>print(command % data)<EOL>raise orb.errors.DryRun()<EOL><DEDENT>data = data or {}<EOL>command = command.strip()<EOL>data.setdefault('<STR_LIT>', locale or orb.Context().locale)<EOL>start = datetime.datetime.now()<EOL>try:<EOL><INDENT>with self.native(writeAccess=writeAccess) as conn:<EOL><INDENT>results, rowcount = self._execute(conn,<EOL>command,<EOL>data,<EOL>returning,<EOL>mapper)<EOL><DEDENT><DEDENT>except orb.errors.Interruption:<EOL><INDENT>delta = datetime.datetime.now() - start<EOL>log.critical('<STR_LIT>' % delta)<EOL>raise<EOL><DEDENT>except orb.errors.DatabaseError as err:<EOL><INDENT>delta = datetime.datetime.now() - start<EOL>log.error('<STR_LIT>'.format(err, command))<EOL>log.error('<STR_LIT>' % delta)<EOL>raise<EOL><DEDENT>except Exception as err:<EOL><INDENT>delta = datetime.datetime.now() - start<EOL>log.error('<STR_LIT>'.format(err, command))<EOL>log.error('<STR_LIT>' % delta)<EOL>raise<EOL><DEDENT>delta = (datetime.datetime.now() - start).total_seconds()<EOL>if delta * <NUM_LIT:1000> < <NUM_LIT>:<EOL><INDENT>lvl = logging.DEBUG<EOL><DEDENT>elif delta * <NUM_LIT:1000> < <NUM_LIT>:<EOL><INDENT>lvl = logging.WARNING<EOL><DEDENT>else:<EOL><INDENT>lvl = logging.CRITICAL<EOL><DEDENT>log.log(lvl, '<STR_LIT>' % delta)<EOL>return results, rowcount<EOL>
Executes the inputted command into the current \
connection cursor.

:param      command    | <str>
            data       | <dict> || None
            autoCommit | <bool> | commit database changes immediately
            autoClose  | <bool> | closes connections immediately
            returning  | <bool>
            mapper     | <variant>
            retries    | <int>

:return     [{<str> key: <variant>, ..}, ..], <int> rowcount