Table 11 - 2 lists the methods of the neko.db.Connection
interface.
Table 11-1
Variable Description Possible Values
host : String The hostname/IP Address of the
server hosting the MySQL
database
Hostname or IP
port : Int The port that the MySQL database
is listening
Usually defaults to 3306
user : String Name of the user to connect
pass : String Password of the user to connect
socket : String On UNIX systems, set to the id of
the socket to connect to the MySQL
database
Set to null for default connection or
the id of the socket to connect
database : String The valid name of the database
hosted by the MySQL Server that
you wish to connect
The parameter passed to connect is of an object type and must contain all six properties listed in the
following table, as they are necessary to achieve a successful connection. Once connected, the method
returns an implementation of the neko.db.Connection interface. Table 11 - 1 details the properties
accepted by the MySQL connect method.
278
Part II: Server Side, JavaScript, and Flash: Oh My!
request()
request will be the method you most use in the Connection objects arsenal.
Pages:
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546