PHP » PYTHON |
login |
register |
about
|
PYTHON SQLite3::__construct
is this article helpful?
|
Python replacement for PHP's SQLite3::__construct
[
edit
| history
]
import sqlite3 db = sqlite3.connect(filename) SQLite3::__construct(PHP 5 >= 5.3.0) SQLite3::__construct — Instantiates an SQLite3 object and opens an SQLite 3 database Description
SQLite3::__construct
( string $filename
[, int $flags
[, string $encryption_key
]] )
Instantiates an SQLite3 object and opens a connection to an SQLite 3 database. If the build includes encryption, then it will attempt to use the key. Parameters
Return ValuesReturns an SQLite3 object on success. Examples
Example #1 SQLite3::__construct() example
<?php
|
more
Recently updated
more
Most requested
|