Package grizzled :: Package db :: Module base :: Class TableMetadata
[hide private]
[frames] | no frames]

Class TableMetadata

source code

object --+    
         |    
     tuple --+
             |
            TableMetadata

TableMetadata(column_name, type_string, max_char_size, precision, scale, nullable)
Instance Methods [hide private]
 
__getnewargs__(self)
Return self as a plain tuple.
source code
 
__getstate__(self)
Exclude the OrderedDict from pickling
source code
 
__repr__(self)
Return a nicely formatted representation string
source code
 
_asdict(self)
Return a new OrderedDict which maps field names to their values
source code
 
_replace(_self, **kwds)
Return a new TableMetadata object replacing specified fields with new values
source code

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_make(cls, iterable, new=<built-in method __new__ of type object at 0xf777db20>, len=<built-in function len>)
Make a new TableMetadata object from a sequence or iterable
source code
Static Methods [hide private]
a new object with type S, a subtype of T
__new__(_cls, column_name, type_string, max_char_size, precision, scale, nullable)
Create new instance of TableMetadata(column_name, type_string, max_char_size, precision, scale, nullable)
source code
Class Variables [hide private]
  _fields = ('column_name', 'type_string', 'max_char_size', 'pre...
Properties [hide private]
  column_name
Alias for field number 0
  max_char_size
Alias for field number 2
  nullable
Alias for field number 5
  precision
Alias for field number 3
  scale
Alias for field number 4
  type_string
Alias for field number 1

Inherited from object: __class__

Method Details [hide private]

__getnewargs__(self)

source code 
Return self as a plain tuple. Used by copy and pickle.
Overrides: tuple.__getnewargs__

__new__(_cls, column_name, type_string, max_char_size, precision, scale, nullable)
Static Method

source code 
Create new instance of TableMetadata(column_name, type_string, max_char_size, precision, scale, nullable)
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(self)
(Representation operator)

source code 
Return a nicely formatted representation string
Overrides: object.__repr__

Class Variable Details [hide private]

_fields

Value:
('column_name',
 'type_string',
 'max_char_size',
 'precision',
 'scale',
 'nullable')

Property Details [hide private]

column_name

Alias for field number 0
Get Method:
<operator.itemgetter object at 0xf6c3cccc>

max_char_size

Alias for field number 2
Get Method:
<operator.itemgetter object at 0xf6c3434c>

nullable

Alias for field number 5
Get Method:
<operator.itemgetter object at 0xf6c34fcc>

precision

Alias for field number 3
Get Method:
<operator.itemgetter object at 0xf6c343cc>

scale

Alias for field number 4
Get Method:
<operator.itemgetter object at 0xf6c34b2c>

type_string

Alias for field number 1
Get Method:
<operator.itemgetter object at 0xf6c3cd8c>