OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bench_batch_streaming_ingest.OmniCon Class Reference

Public Member Functions

def __init__
 
def query
 

Public Attributes

 con
 
 cursor
 

Detailed Description

Definition at line 23 of file bench_batch_streaming_ingest.py.

Constructor & Destructor Documentation

def bench_batch_streaming_ingest.OmniCon.__init__ (   self,
  user,
  pw,
  dbname 
)

Definition at line 24 of file bench_batch_streaming_ingest.py.

24 
25  def __init__(self, user, pw, dbname):
26  self.con = pymapd.connect(user=user, password=pw, dbname=dbname, host="localhost")
27  self.cursor = self.con.cursor()

Member Function Documentation

def bench_batch_streaming_ingest.OmniCon.query (   self,
  sql 
)

Definition at line 28 of file bench_batch_streaming_ingest.py.

28 
29  def query(self, sql):
30  return self.cursor.execute(sql)

Member Data Documentation

bench_batch_streaming_ingest.OmniCon.con

Definition at line 25 of file bench_batch_streaming_ingest.py.

bench_batch_streaming_ingest.OmniCon.cursor

Definition at line 26 of file bench_batch_streaming_ingest.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: