1SQLiteDB.connect(3kaya)      Kaya module reference     SQLiteDB.connect(3kaya)
2
3
4

NAME

6       SQLiteDB::connect - Open a database file.
7

SYNOPSIS

9       SQLiteDB connect( String fname )
10

ARGUMENTS

12       fname The filename of the database
13

DESCRIPTION

15       Use this function to open the database file (creating it if it does not
16       exist). You can then use the functions  from  DB(3kaya)  to  query  the
17       database.
18
19
20    db = SQLiteDB::connect("site.db");
21    res = exec(db,"SELECT * FROM pagedata WHERE page_id = 10");
22

AUTHORS

24       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
25       (kaya@kayalang.org). For further information see http://kayalang.org/
26

LICENSE

28       The Kaya standard library is free software;  you  can  redistribute  it
29       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
30       License (version 2.1 or any later version) as  published  by  the  Free
31       Software Foundation.
32
34       DB(3kaya)
35
36
37
38Kaya                             December 2010         SQLiteDB.connect(3kaya)
Impressum