def page_to_offset(params):
if '<STR_LIT>' not in params:<EOL><INDENT>return<EOL><DEDENT>page = params['<STR_LIT>']<EOL>del params['<STR_LIT>']<EOL>if '<STR_LIT>' in params:<EOL><INDENT>per_page = params.get('<STR_LIT>')<EOL>del params['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>per_page = params.get('<STR_LIT>', <NUM_LIT:10>)<EOL><DEDENT>params['<STR_LIT>'] = int(per_page) * (int(page) - <NUM_LIT:1>)<EOL>params['<STR_LIT>'] = per_page<EOL>
Transforms `page`/`per_page` from `params` to `limit`/`offset` suitable for SQL.

:param dict params: The dictionary containing `page` and `per_page` values will be added
                    the values `limit` and `offset`.