/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
NonDbi::dataset::File Class Reference
Inheritance diagram for NonDbi::dataset::File:
Inheritance graph
[legend]
Collaboration diagram for NonDbi::dataset::File:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 path

Static Public Attributes

tuple id = Column(Integer, primary_key=True)
tuple path = Column(String(255), nullable=False )

Static Private Attributes

string __tablename__ = 'file'

Detailed Description

instead of using a get_or_create equivalent could enforce uniqueness of the path 
at DB level and then catch IntegrityError on creating ? 

Definition at line 39 of file dataset.py.


Constructor & Destructor Documentation

def NonDbi::dataset::File::__init__ (   self,
  path 
)

Definition at line 49 of file dataset.py.

00050                              :
        self.path = path

Member Function Documentation

def NonDbi::dataset::File::__repr__ (   self)

Definition at line 51 of file dataset.py.

00052                       :
00053         return "File('%s')" % self.path 
00054 


Member Data Documentation

string NonDbi::dataset::File::__tablename__ = 'file' [static, private]

Definition at line 44 of file dataset.py.

tuple NonDbi::dataset::File::id = Column(Integer, primary_key=True) [static]

Definition at line 46 of file dataset.py.

tuple NonDbi::dataset::File::path = Column(String(255), nullable=False ) [static]

Definition at line 47 of file dataset.py.

Definition at line 49 of file dataset.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:09 for NonDbi by doxygen 1.7.4