OmniSciDB  8fa3bf436f
 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 1485 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 1494 of file ttypes.py.

1495  def __init__(self, db_name=None, db_owner=None,):
1496  self.db_name = db_name
1497  self.db_owner = db_owner

Member Function Documentation

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

Definition at line 1546 of file ttypes.py.

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

Definition at line 1549 of file ttypes.py.

1550  def __ne__(self, other):
1551  return not (self == other)
1552 
def omnisci.thrift.ttypes.TDBInfo.__repr__ (   self)

Definition at line 1541 of file ttypes.py.

1542  def __repr__(self):
1543  L = ['%s=%r' % (key, value)
1544  for key, value in self.__dict__.items()]
1545  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 1498 of file ttypes.py.

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

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

Definition at line 1538 of file ttypes.py.

1539  def validate(self):
1540  return
def omnisci.thrift.ttypes.TDBInfo.write (   self,
  oprot 
)

Definition at line 1522 of file ttypes.py.

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

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

Member Data Documentation

omnisci.thrift.ttypes.TDBInfo.__dict__
private

Definition at line 1547 of file ttypes.py.

omnisci.thrift.ttypes.TDBInfo.db_name

Definition at line 1495 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 1496 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: