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

Public Member Functions

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

Public Attributes

 user
 
 passwd
 
 dbname
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - user
 - passwd
 - dbname

Definition at line 6053 of file OmniSci.py.

Constructor & Destructor Documentation

def omnisci.thrift.OmniSci.connect_args.__init__ (   self,
  user = None,
  passwd = None,
  dbname = None 
)

Definition at line 6063 of file OmniSci.py.

6064  def __init__(self, user=None, passwd=None, dbname=None,):
6065  self.user = user
6066  self.passwd = passwd
6067  self.dbname = dbname

Member Function Documentation

def omnisci.thrift.OmniSci.connect_args.__eq__ (   self,
  other 
)

Definition at line 6125 of file OmniSci.py.

6126  def __eq__(self, other):
6127  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.OmniSci.connect_args.__ne__ (   self,
  other 
)

Definition at line 6128 of file OmniSci.py.

6129  def __ne__(self, other):
6130  return not (self == other)
6131 all_structs.append(connect_args)
connect_args.thrift_spec = (
def omnisci.thrift.OmniSci.connect_args.__repr__ (   self)

Definition at line 6120 of file OmniSci.py.

6121  def __repr__(self):
6122  L = ['%s=%r' % (key, value)
6123  for key, value in self.__dict__.items()]
6124  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.OmniSci.connect_args.read (   self,
  iprot 
)

Definition at line 6068 of file OmniSci.py.

References omnisci.thrift.OmniSci.connect_args.dbname, omnisci.thrift.OmniSci.connect_args.passwd, com.omnisci.jdbc.OmniSciGeomTest.user, com.omnisci.jdbc.OmniSciPrepareTest.user, com.omnisci.jdbc.OmniSciColumnTypeTest.user, com.omnisci.jdbc.OmniSciConnectionTest.user, com.omnisci.jdbc.OmniSciArrayTest.user, com.omnisci.jdbc.OmniSciStatementTest.user, com.mapd.calcite.parser.MapDUser.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.Builder.user, com.mapd.parser.extension.ddl.SqlDropUserMapping.user, DashboardDescriptor.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.user, com.omnisci.jdbc.Connection_enums.user, and omnisci.thrift.OmniSci.connect_args.user.

6069  def read(self, iprot):
6070  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6071  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6072  return
6073  iprot.readStructBegin()
6074  while True:
6075  (fname, ftype, fid) = iprot.readFieldBegin()
6076  if ftype == TType.STOP:
6077  break
6078  if fid == 1:
6079  if ftype == TType.STRING:
6080  self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6081  else:
6082  iprot.skip(ftype)
6083  elif fid == 2:
6084  if ftype == TType.STRING:
6085  self.passwd = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6086  else:
6087  iprot.skip(ftype)
6088  elif fid == 3:
6089  if ftype == TType.STRING:
6090  self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6091  else:
6092  iprot.skip(ftype)
6093  else:
6094  iprot.skip(ftype)
6095  iprot.readFieldEnd()
6096  iprot.readStructEnd()
def omnisci.thrift.OmniSci.connect_args.validate (   self)

Definition at line 6117 of file OmniSci.py.

6118  def validate(self):
6119  return
def omnisci.thrift.OmniSci.connect_args.write (   self,
  oprot 
)

Definition at line 6097 of file OmniSci.py.

References omnisci.thrift.OmniSci.connect_args.dbname, omnisci.thrift.OmniSci.connect_args.passwd, com.omnisci.jdbc.OmniSciGeomTest.user, com.omnisci.jdbc.OmniSciPrepareTest.user, com.omnisci.jdbc.OmniSciColumnTypeTest.user, com.omnisci.jdbc.OmniSciConnectionTest.user, com.omnisci.jdbc.OmniSciArrayTest.user, com.omnisci.jdbc.OmniSciStatementTest.user, com.mapd.calcite.parser.MapDUser.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.Builder.user, com.mapd.parser.extension.ddl.SqlDropUserMapping.user, DashboardDescriptor.user, com.mapd.parser.extension.ddl.SqlCreateUserMapping.user, com.omnisci.jdbc.Connection_enums.user, and omnisci.thrift.OmniSci.connect_args.user.

6098  def write(self, oprot):
6099  if oprot._fast_encode is not None and self.thrift_spec is not None:
6100  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6101  return
6102  oprot.writeStructBegin('connect_args')
6103  if self.user is not None:
6104  oprot.writeFieldBegin('user', TType.STRING, 1)
6105  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
6106  oprot.writeFieldEnd()
6107  if self.passwd is not None:
6108  oprot.writeFieldBegin('passwd', TType.STRING, 2)
6109  oprot.writeString(self.passwd.encode('utf-8') if sys.version_info[0] == 2 else self.passwd)
6110  oprot.writeFieldEnd()
6111  if self.dbname is not None:
6112  oprot.writeFieldBegin('dbname', TType.STRING, 3)
6113  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
6114  oprot.writeFieldEnd()
6115  oprot.writeFieldStop()
6116  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.OmniSci.connect_args.__dict__
private

Definition at line 6126 of file OmniSci.py.

omnisci.thrift.OmniSci.connect_args.dbname

Definition at line 6066 of file OmniSci.py.

Referenced by omnisci.thrift.OmniSci.connect_args.read(), omnisci.thrift.OmniSci.krb5_connect_args.read(), omnisci.thrift.OmniSci.switch_database_args.read(), omnisci.thrift.OmniSci.connect_args.write(), omnisci.thrift.OmniSci.krb5_connect_args.write(), and omnisci.thrift.OmniSci.switch_database_args.write().

omnisci.thrift.OmniSci.connect_args.passwd

Definition at line 6065 of file OmniSci.py.

Referenced by omnisci.thrift.OmniSci.connect_args.read(), and omnisci.thrift.OmniSci.connect_args.write().

omnisci.thrift.OmniSci.connect_args.user

Definition at line 6064 of file OmniSci.py.

Referenced by omnisci.thrift.ttypes.TSessionInfo.read(), omnisci.thrift.OmniSci.connect_args.read(), omnisci.thrift.ttypes.TSessionInfo.write(), and omnisci.thrift.OmniSci.connect_args.write().


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