~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/dialects/sqlite/base.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
Constraint checking on SQLite has three prerequisites:
101
101
 
102
102
* At least version 3.6.19 of SQLite must be in use
103
 
* The SQLite libary must be compiled *without* the SQLITE_OMIT_FOREIGN_KEY
 
103
* The SQLite library must be compiled *without* the SQLITE_OMIT_FOREIGN_KEY
104
104
  or SQLITE_OMIT_TRIGGER symbols enabled.
105
105
* The ``PRAGMA foreign_keys = ON`` statement must be emitted on all connections
106
106
  before use.
244
244
    :param regexp: regular expression which will be applied to incoming result
245
245
     rows. If the regexp contains named groups, the resulting match dict is
246
246
     applied to the Python datetime() constructor as keyword arguments.
247
 
     Otherwise, if positional groups are used, the the datetime() constructor
 
247
     Otherwise, if positional groups are used, the datetime() constructor
248
248
     is called with positional arguments via
249
249
     ``*map(int, match_obj.groups(0))``.
250
250
    """
337
337
     incoming result rows. If the regexp contains named groups, the
338
338
     resulting match dict is applied to the Python date() constructor
339
339
     as keyword arguments. Otherwise, if positional groups are used, the
340
 
     the date() constructor is called with positional arguments via
 
340
     date() constructor is called with positional arguments via
341
341
     ``*map(int, match_obj.groups(0))``.
342
342
    """
343
343
 
397
397
    :param regexp: regular expression which will be applied to incoming result
398
398
     rows. If the regexp contains named groups, the resulting match dict is
399
399
     applied to the Python time() constructor as keyword arguments. Otherwise,
400
 
     if positional groups are used, the the time() constructor is called with
 
400
     if positional groups are used, the time() constructor is called with
401
401
     positional arguments via ``*map(int, match_obj.groups(0))``.
402
402
    """
403
403
 
874
874
    def _resolve_type_affinity(self, type_):
875
875
        """Return a data type from a reflected column, using affinity tules.
876
876
 
877
 
        SQLite's goal for universal compatability introduces some complexity
 
877
        SQLite's goal for universal compatibility introduces some complexity
878
878
        during reflection, as a column's defined type might not actually be a
879
879
        type that SQLite understands - or indeed, my not be defined *at all*.
880
880
        Internally, SQLite handles this with a 'data type affinity' for each