Author Topic: YATE +MYSQL  (Read 8131 times)

Aldo T

  • Newbie
  • *
  • Posts: 8
    • View Profile
YATE +MYSQL
« on: July 23, 2017, 03:14:23 AM »
Hi Team,

I try to use MySQL inside NIB.js, do you know if I need to install some additional library?

I want to create new data base with new user registration,

I will appreciate your help a lot,

Thanks in advance for your time and best regards,

//Aldo T

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: YATE +MYSQL
« Reply #1 on: July 24, 2017, 12:47:59 AM »
You'll need:
http://docs.yate.ro/wiki/Javascript_Message
http://docs.yate.ro/wiki/Database
http://docs.yate.ro/wiki/MySQL

Javascript:
Message.getRow() and Message.getResult() are not documented but:
Message.getRow() can be used to return an object (database row) from database query.
Message.getResult() can be used to return an array of objects (databse query result set)