Cleanup in the usage file.

This commit is contained in:
Daniele Varrazzo 2010-02-12 21:51:48 +00:00 committed by Federico Di Gregorio
parent 0694b85e59
commit 885dbf6428

View File

@ -46,19 +46,20 @@ The main entry point of Psycopg are:
- The class :class:`connection` encapsulates a database session. It allows to: - The class :class:`connection` encapsulates a database session. It allows to:
- terminate the session using the methods :meth:`~connection.commit` and - create new :class:`cursor`\s using the :meth:`~connection.cursor` method to
:meth:`~connection.rollback`, execute database commands and queries,
- create new :class:`cursor`\ s to execute database commands and queries - terminate the session using the methods :meth:`~connection.commit` or
using the method :meth:`~connection.cursor`. :meth:`~connection.rollback`.
- The class :class:`cursor` allows interaction with the database: - The class :class:`cursor` allows interaction with the database:
- send command using methods such as :meth:`~cursor.execute` and - send commands to the database using methods such as :meth:`~cursor.execute`
:meth:`~cursor.executemany`, and :meth:`~cursor.executemany`,
- retrieve data using methods such as :meth:`~cursor.fetchone`, - retrieve data from the database using methods such as
:meth:`~cursor.fetchmany`, :meth:`~cursor.fetchall`. :meth:`~cursor.fetchone`, :meth:`~cursor.fetchmany`,
:meth:`~cursor.fetchall`.
@ -187,7 +188,7 @@ easily craft a malformed string, either gaining access to unauthorized data or
performing destructive operations on the database. This form of attack is performing destructive operations on the database. This form of attack is
called `SQL injection`_ and is known to be one of the most widespread forms of called `SQL injection`_ and is known to be one of the most widespread forms of
attack to servers. Before continuing, please print `this page`__ as a memo and attack to servers. Before continuing, please print `this page`__ as a memo and
hang it onto your desktop. hang it onto your desk.
.. _SQL injection: http://en.wikipedia.org/wiki/SQL_injection .. _SQL injection: http://en.wikipedia.org/wiki/SQL_injection
.. __: http://xkcd.com/327/ .. __: http://xkcd.com/327/