OmniSciDB  a667adc9c8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bench_update.OmniSciCon Class Reference

Public Member Functions

def __init__
 
def query
 

Public Attributes

 con
 
 cursor
 

Detailed Description

Definition at line 20 of file bench_update.py.

Constructor & Destructor Documentation

def bench_update.OmniSciCon.__init__ (   self,
  user,
  pw,
  dbname,
  host 
)

Definition at line 21 of file bench_update.py.

21 
22  def __init__(self, user, pw, dbname, host):
23  self.con = pymapd.connect(user=user, password=pw, dbname=dbname, host=host)
24  self.cursor = self.con.cursor()

Member Function Documentation

def bench_update.OmniSciCon.query (   self,
  sql 
)

Definition at line 25 of file bench_update.py.

25 
26  def query(self, sql):
27  return self.cursor.execute(sql)

Member Data Documentation

bench_update.OmniSciCon.con

Definition at line 22 of file bench_update.py.

bench_update.OmniSciCon.cursor

Definition at line 23 of file bench_update.py.

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


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