Demo entry 6784670


Submitted by anonymous on Mar 07, 2019 at 07:08
Language: Python 3. Code size: 532 Bytes.

from machbaseAPI import machbase
def connect():
    db = machbase()
    if'','SYS','MANAGER',5656) is 0 :
        return db.result()
    if db.execute('select count(*) from m$tables') is 0 :
        return db.result()
    result = db.result()
    if db.close() is 0 :
        return db.result()
    return result
if __name__=="__main__":
    print connect()
[mach@localhost python]$ make run_sample1

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).