OmniSciDB  a575cb28ea
 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 6209 of file OmniSci.py.

Constructor & Destructor Documentation

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

Definition at line 6219 of file OmniSci.py.

6220  def __init__(self, user=None, passwd=None, dbname=None,):
6221  self.user = user
6222  self.passwd = passwd
6223  self.dbname = dbname

Member Function Documentation

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

Definition at line 6281 of file OmniSci.py.

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

Definition at line 6284 of file OmniSci.py.

6285  def __ne__(self, other):
6286  return not (self == other)
6287 all_structs.append(connect_args)
connect_args.thrift_spec = (
def omnisci.thrift.OmniSci.connect_args.__repr__ (   self)

Definition at line 6276 of file OmniSci.py.

6277  def __repr__(self):
6278  L = ['%s=%r' % (key, value)
6279  for key, value in self.__dict__.items()]
6280  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 6224 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.

6225  def read(self, iprot):
6226  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6227  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6228  return
6229  iprot.readStructBegin()
6230  while True:
6231  (fname, ftype, fid) = iprot.readFieldBegin()
6232  if ftype == TType.STOP:
6233  break
6234  if fid == 1:
6235  if ftype == TType.STRING:
6236  self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6237  else:
6238  iprot.skip(ftype)
6239  elif fid == 2:
6240  if ftype == TType.STRING:
6241  self.passwd = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6242  else:
6243  iprot.skip(ftype)
6244  elif fid == 3:
6245  if ftype == TType.STRING:
6246  self.dbname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
6247  else:
6248  iprot.skip(ftype)
6249  else:
6250  iprot.skip(ftype)
6251  iprot.readFieldEnd()
6252  iprot.readStructEnd()
def omnisci.thrift.OmniSci.connect_args.validate (   self)

Definition at line 6273 of file OmniSci.py.

6274  def validate(self):
6275  return
def omnisci.thrift.OmniSci.connect_args.write (   self,
  oprot 
)

Definition at line 6253 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.

6254  def write(self, oprot):
6255  if oprot._fast_encode is not None and self.thrift_spec is not None:
6256  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6257  return
6258  oprot.writeStructBegin('connect_args')
6259  if self.user is not None:
6260  oprot.writeFieldBegin('user', TType.STRING, 1)
6261  oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user)
6262  oprot.writeFieldEnd()
6263  if self.passwd is not None:
6264  oprot.writeFieldBegin('passwd', TType.STRING, 2)
6265  oprot.writeString(self.passwd.encode('utf-8') if sys.version_info[0] == 2 else self.passwd)
6266  oprot.writeFieldEnd()
6267  if self.dbname is not None:
6268  oprot.writeFieldBegin('dbname', TType.STRING, 3)
6269  oprot.writeString(self.dbname.encode('utf-8') if sys.version_info[0] == 2 else self.dbname)
6270  oprot.writeFieldEnd()
6271  oprot.writeFieldStop()
6272  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.OmniSci.connect_args.__dict__
private

Definition at line 6282 of file OmniSci.py.

omnisci.thrift.OmniSci.connect_args.dbname

Definition at line 6222 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 6221 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 6220 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: