Changeset 4447:5ff2593c0dd8 in livinglogic.python.xist

Show
Ignore:
Timestamp:
04/05/11 17:04:32 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Docstring for oradelete. Fix typos.

Location:
src/ll/orasql/scripts
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • src/ll/orasql/scripts/oracreate.py

    r4446 r4447  
    5050 
    5151    ``-i``, ``--ignore`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
    52         If given, errors occuring while it database is read or written will be 
     52        If given, errors occuring while the database is read or written will be 
    5353        ignored. 
    5454 
  • src/ll/orasql/scripts/oradelete.py

    r4422 r4447  
    1010 
    1111 
     12""" 
     13Purpose 
     14------- 
     15 
     16``oradelete`` prints the delete statements for all tables in an Oracle database 
     17schema in the correct order (i.e. records will be deleted so that no errors 
     18happen during script execution). ``oradelete`` can also be used to actually 
     19make all tables empty. 
     20 
     21 
     22Options 
     23------- 
     24 
     25``oradelete`` supports the following options: 
     26 
     27    ``connectstring`` 
     28        An Oracle connectstring. 
     29 
     30    ``-v``, ``--verbose`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
     31        Produces output (on stderr) while to datebase is read or written. 
     32 
     33    ``-c``, ``--color`` : ``yes``, ``no`` or ``auto`` 
     34        Should the output (when the ``-v`` option is used) be colored. If ``auto`` 
     35        is specified (the default) then the output is colored if stderr is a 
     36        terminal. 
     37 
     38    ``-s``, ``--sequences`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
     39        Should sequences be reset to their initial values? 
     40 
     41    ``-x``, ``--execute`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
     42        When the ``-x`` argument is given the SQL script isn't printed on stdout, 
     43        but is executed directly. Be careful with this: You *will* have empty 
     44        tables after ``oradelete -x``. 
     45 
     46    ``-i``, ``--ignore`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
     47        If given, errors occuring while the database is read or written will be 
     48        ignored. 
     49 
     50    ``-e``, ``--encoding`` : encoding 
     51        The encoding of the output (if ``-x`` is not given; default is ``utf-8``). 
     52 
     53    ``-t``, ``--truncate`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
     54        If given the script uses the ``TRUNCATE`` command instead of the ``DELETE`` 
     55        command. 
     56""" 
     57 
     58 
    1259import sys, os, argparse 
    1360 
    1461from ll import misc, astyle, orasql 
     62 
     63 
     64__docformat__ = "reStructuredText" 
    1565 
    1666 
  • src/ll/orasql/scripts/oradrop.py

    r4446 r4447  
    1717schema in the correct order (i.e. objects will be dropped so that no errors 
    1818happen during script execution). ``oradrop`` can also be used to actually 
    19 make the schema empty.. 
     19make the schema empty. 
    2020 
    2121 
     
    5353 
    5454    ``-i``, ``--ignore`` : ``false``, ``no``, ``0``, ``true``, ``yes`` or ``1`` 
    55         If given, errors occuring while it database is read or written will be 
     55        If given, errors occuring while the database is read or written will be 
    5656        ignored. 
    5757