MySQL Forums
Forum List  »  Connector/Node.js

Re: how do we work with rational tables in devapi?
Posted by: Chirag Shah
Date: November 23, 2018 03:03AM

Connector/Node.js doesn't have functionality of fetchOne().

myTable .select(['_id', 'name', 'birthday'])
        .where('name like :name && age < :age)')
        .bind('name', 'S%')
        .bind('age', 20)
        .execute(function (row) {
          console.log(row); //you can fetch your result over here for every row one by one.
        });

Check this link with section Node.js JavaScript Code.
https://dev.mysql.com/doc/x-devapi-userguide/en/devapi-users-working-with-relational-tables.html

Options: ReplyQuote


Subject
Written By
Posted
Re: how do we work with rational tables in devapi?
November 23, 2018 03:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.