[3] Engine Configuration — SQLAlchemy 0.7 Documentation ( ( 版)) <http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html#database-urls>
SQLite connects to file based databases. The same URL format is used, omitting the hostname, and using the "file" portion as the filename of the database. This has the effect of four slashes being present for an absolute file path: sqlite:////full/path/to/your/database/file.sqlite.
SQLite django.db.backends.sqlite3 sqlite:///PATH [1]
[1] SQLite connects to file based databases. The same URL format is used, omitting the hostname, and using the "file" portion as the filename of the database. This has the effect of four slashes being present for an absolute file path: sqlite:////full/path/to/your/database/file.sqlite.
DATABASE_URL = sqlite3://db/database.sqlite3
$ cf set-env expense DATABASE_URL sqlite3:////home/vcap/app/db/production.sqlite3
-e DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3 \
# Absolute filename
$sql->from_string('sqlite:////home/fred/data.db');
$sql->from_string('sqlite://localhost//home/fred/data.db');
$sql->from_string('sqlite:/home/fred/data.db');
$sql->from_string('file:///home/fred/data.db');
$sql->from_string('file://localhost/home/fred/data.db');
$sql->from_string('file:/home/fred/data.db');
$sql->from_string('///home/fred/data.db');
$sql->from_string('//localhost/home/fred/data.db');
$sql->from_string('/home/fred/data.db');
# Relative to current directory
$sql->from_string('sqlite:data.db');
$sql->from_string('file:data.db');
$sql->from_string('data.db');
This worked:
sqlite://localhost/c:/htdocs/ocomb2/webapp/data/data.db