Repository URL to install this package:
|
Version:
3.0.168 ▾
|
tvault-contego-common
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
sqlalchemy
/
engine
/
reflection.pyc
|
|---|
ó
EYc @ s¸ d Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m
Z
d d l m Z d d
l m
Z
e j d Z d e f d
YZ d S( sã Provides an abstraction for obtaining database schema information.
Usage Notes:
Here are some general conventions when accessing the low level inspector
methods such as get_table_names, get_columns, etc.
1. Inspector methods return lists of dicts in most cases for the following
reasons:
* They're both standard types that can be serialized.
* Using a dict instead of a tuple allows easy expansion of attributes.
* Using a list for the outer structure maintains order and is easy to work
with (e.g. list comprehension [d['name'] for d in cols]).
2. Records that contain a name, such as the column name in a column record
use the key 'name'. So for most return values, each record will have a
'name' attribute..
i ( t exct sql( t schema( t util( t
TypeEngine( t
deprecated( t topological( t
inspectioni ( t Connectablec O sª | j d d } | d k r1 | | | | | S| j t d | D t d | j D f } | j | } | d k r¦ | | | | | } | | | <n | S( Nt
info_cachec s s' | ] } t | t j r | Vq d S( N( t
isinstanceR t string_types( t .0t a( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/engine/reflection.pys <genexpr>- s c s sA | ]7 \ } } t | t j t j t f r | | f Vq d S( N( R
R R t int_typest float( R t kt v( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/engine/reflection.pys <genexpr>. s ( t gett Nonet __name__t tuplet items( t fnt selft cont argst kwR t keyt ret( ( sQ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/engine/reflection.pyt cache&