Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sqlite3.open(3) [php man page]

SQLITE3.OPEN(3) 														   SQLITE3.OPEN(3)

SQLite3::open - Opens an SQLite database

SYNOPSIS
public void SQLite3::open (string $filename, [int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE], [string $encryption_key]) DESCRIPTION
Opens an SQLite 3 Database. If the build includes encryption, then it will attempt to use the key. PARAMETERS
o $filename - Path to the SQLite database, or :memory: to use in-memory database. o $flags - Optional flags used to determine how to open the SQLite database. By default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. o SQLITE3_OPEN_READONLY: Open the database for reading only. o SQLITE3_OPEN_READWRITE: Open the database for reading and writing. o SQLITE3_OPEN_CREATE: Create the database if it does not exist. o $encryption_key - An optional encryption key used when encrypting and decrypting an SQLite database. RETURN VALUES
No value is returned. EXAMPLES
Example #1 SQLite3.open(3) example <?php /** * Simple example of extending the SQLite3 class and changing the __construct * parameters, then using the open method to initialize the DB. */ class MyDB extends SQLite3 { function __construct() { $this->open('mysqlitedb.db'); } } $db = new MyDB(); $db->exec('CREATE TABLE foo (bar STRING)'); $db->exec("INSERT INTO foo (bar) VALUES ('This is a test')"); $result = $db->query('SELECT bar FROM foo'); var_dump($result->fetchArray()); ?> PHP Documentation Group SQLITE3.OPEN(3)

Check Out this Related Man Page

edb-sqlite(7)															     edb-sqlite(7)

NAME
edb-sqlite - eurephia SQLite3 database driver DESCRIPTION
The edb-sqlite database driver is used to enable SQLite3 database in eurephia. The SQLite3 database is file based and requires no server setup at all. The database driver takes only one argument, which is a full path to the database file.b EXAMPLES
eurephia-auth - This is configured via the OpenVPN configuration file. plugin eurephia-auth.so "-i edb-sqlite.so -- <full path to database file>" Plese notice the double dashes. They are separating the arguments between the eurephia-auth module and the database driver. eurephia_init - This is set via the command line user@server:~ $ eurephia_init --database-driver edb-sqlite.so --database-args "<full path to DB file>" eurephiadm - This is configured in the ~/.eurephia/eurephiadm.cfg file database_driver = edb-sqlite.so database_params = <full path to DB file> SEE ALSO
eurephia-auth(7), eurephiadm(7), eurephia_init(7) AUTHOR
Copyright (C) 2008-2010 David Sommerseth <dazo@users.sourceforge.net> David Sommerseth July 2010 edb-sqlite(7)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

one teaching Tip

Student have huge interest about why so many expert choose use UNIX than MS Windows. I consider that SHARE & OPEN is key point.:) (2 Replies)
Discussion started by: 111000
2 Replies

2. Shell Programming and Scripting

Perl - SQLite question

Hello All, I am trying to write a Perl script that is using 'SQLite' as the application needs a very light weight Database. I wanted to know how to catch exceptions when I run queries in SQLite. Without this the Perl script comes to a halt everytime an exception occurs. Please help. Regards,... (4 Replies)
Discussion started by: garric
4 Replies

3. Shell Programming and Scripting

Need comma separated processing

I have a file like this OUTLN OPEN Y SCOTT OPEN N USER4 OPEN Y DBSNMP EXPIRED & LOCKED N ... (4 Replies)
Discussion started by: ilugopal
4 Replies

4. Shell Programming and Scripting

Need to append at end

I have the following input axrsgpar0335 METTEST DPC OUTLN OPEN Y axrsgpar0335 METTEST DPC SYS ... (4 Replies)
Discussion started by: ilugopal
4 Replies

5. Shell Programming and Scripting

Several processes writing to an SQLite database at the same time

I have several bash scripts that write to an SQLite3 database at the same time. At some occasion the database returns: SQL error: database is locked. How would be the best way, to make a process to wait until the data base is 'free' again. I tried: sqlite3 test.db ".timeout 1000; update....."... (2 Replies)
Discussion started by: creamcheese
2 Replies