OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TDBInfo Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TDBInfo:
+ Collaboration diagram for omnisci.thrift.ttypes.TDBInfo:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 db_name
 
 db_owner
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - db_name
 - db_owner

Definition at line 1482 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TDBInfo.__init__ (   self,
  db_name = None,
  db_owner = None 
)

Definition at line 1491 of file ttypes.py.

1492  def __init__(self, db_name=None, db_owner=None,):
1493  self.db_name = db_name
1494  self.db_owner = db_owner

Member Function Documentation

def omnisci.thrift.ttypes.TDBInfo.__eq__ (   self,
  other 
)

Definition at line 1543 of file ttypes.py.

1544  def __eq__(self, other):
1545  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TDBInfo.__ne__ (   self,
  other 
)

Definition at line 1546 of file ttypes.py.

1547  def __ne__(self, other):
1548  return not (self == other)
1549 
def omnisci.thrift.ttypes.TDBInfo.__repr__ (   self)

Definition at line 1538 of file ttypes.py.

1539  def __repr__(self):
1540  L = ['%s=%r' % (key, value)
1541  for key, value in self.__dict__.items()]
1542  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def omnisci.thrift.ttypes.TDBInfo.read (   self,
  iprot 
)

Definition at line 1495 of file ttypes.py.

References create_table.SyntheticTable.db_name, com.omnisci.jdbc.Connection_enums.db_name, omnisci.thrift.ttypes.TDBInfo.db_name, Parser::CreateDBStmt.db_name, Parser::DropDBStmt.db_name, and omnisci.thrift.ttypes.TDBInfo.db_owner.

1496  def read(self, iprot):
1497  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1498  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1499  return
1500  iprot.readStructBegin()
1501  while True:
1502  (fname, ftype, fid) = iprot.readFieldBegin()
1503  if ftype == TType.STOP:
1504  break
1505  if fid == 1:
1506  if ftype == TType.STRING:
1507  self.db_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
1508  else:
1509  iprot.skip(ftype)
1510  elif fid == 2:
1511  if ftype == TType.STRING:
1512  self.db_owner = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
1513  else:
1514  iprot.skip(ftype)
1515  else:
1516  iprot.skip(ftype)
1517  iprot.readFieldEnd()
1518  iprot.readStructEnd()
def omnisci.thrift.ttypes.TDBInfo.validate (   self)

Definition at line 1535 of file ttypes.py.

1536  def validate(self):
1537  return
def omnisci.thrift.ttypes.TDBInfo.write (   self,
  oprot 
)

Definition at line 1519 of file ttypes.py.

References create_table.SyntheticTable.db_name, com.omnisci.jdbc.Connection_enums.db_name, omnisci.thrift.ttypes.TDBInfo.db_name, Parser::CreateDBStmt.db_name, Parser::DropDBStmt.db_name, and omnisci.thrift.ttypes.TDBInfo.db_owner.

1520  def write(self, oprot):
1521  if oprot._fast_encode is not None and self.thrift_spec is not None:
1522  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1523  return
1524  oprot.writeStructBegin('TDBInfo')
1525  if self.db_name is not None:
1526  oprot.writeFieldBegin('db_name', TType.STRING, 1)
1527  oprot.writeString(self.db_name.encode('utf-8') if sys.version_info[0] == 2 else self.db_name)
1528  oprot.writeFieldEnd()
1529  if self.db_owner is not None:
1530  oprot.writeFieldBegin('db_owner', TType.STRING, 2)
1531  oprot.writeString(self.db_owner.encode('utf-8') if sys.version_info[0] == 2 else self.db_owner)
1532  oprot.writeFieldEnd()
1533  oprot.writeFieldStop()
1534  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TDBInfo.__dict__
private

Definition at line 1544 of file ttypes.py.

omnisci.thrift.ttypes.TDBInfo.db_name

Definition at line 1492 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TDBInfo.read(), and omnisci.thrift.ttypes.TDBInfo.write().

omnisci.thrift.ttypes.TDBInfo.db_owner

Definition at line 1493 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TDBInfo.read(), and omnisci.thrift.ttypes.TDBInfo.write().


The documentation for this class was generated from the following file: