(dbname, tablename, conn)
Create a rethinkDB table
Create a rethinkDB table
Create a rethinkDB table
def createTable(dbname, tablename, conn):
    ''' Create a rethinkDB table '''
    print("Creating table: %s") % tablename
    try:
        r.db(dbname).table_create(tablename).run(conn)
    except (RqlDriverError, RqlRuntimeError, socket.error) as e:
        print("RethinkDB Error: %s") % e.message
        print("Table %s not created") % tablename
def createTable ( dbname , tablename , conn ) : print ( "Creating table: %s" ) % tablename try : r . db ( dbname ) . table_create ( tablename ) . run ( conn ) except ( RqlDriverError , RqlRuntimeError , socket . error ) as e : print ( "RethinkDB Error: %s" ) % e . message print ( "Table %s not created" ) % tablename