Yate Community Forum

Yate server => Other Yate server issues => Topic started by: Aldo T on July 23, 2017, 03:14:23 AM

Title: YATE +MYSQL
Post by: Aldo T 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
Title: Re: YATE +MYSQL
Post by: marian 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)