Kaya 0.5.2 reference for MyDB::connect

List of functions and data types in MyDB

MyDB connect(String host, String user, String pwd, String db, Int port=0)



Use this function to connect to the database. You can then use the functions from DB to query the database.

db = MyDB::connect("localhost","web","WHSpWXPPh5","mysite");
res = exec(db,"SELECT * FROM pagedata WHERE page_id = 10");


kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya