diff options
author | Jim Hokanson <jim.hokanson@gmail.com> | 2014-09-14 00:25:41 -0400 |
---|---|---|
committer | Jim Hokanson <jim.hokanson@gmail.com> | 2014-09-14 00:25:41 -0400 |
commit | 7fd3f05805a7cf1ff1fa29ffcf375c4eea6627ba (patch) | |
tree | 93f6fa9c291f615da20cf197c9cf4b7505ca7c05 | |
parent | f98c89d2bee2ae562c79d91aeb96fd55875db917 (diff) | |
download | sqlalchemy-pr/135.tar.gz |
Updated documenation for engines.rstpr/135
Clarified connecting to absolute path for sqlite using Windows.
-rw-r--r-- | doc/build/core/engines.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/build/core/engines.rst b/doc/build/core/engines.rst index fb0320474..17ec9416c 100644 --- a/doc/build/core/engines.rst +++ b/doc/build/core/engines.rst @@ -151,9 +151,14 @@ For a relative file path, this requires three slashes:: # where <path> is relative: engine = create_engine('sqlite:///foo.db') -And for an absolute file path, *four* slashes are used:: +And for an absolute file path, the three slashes are followed by the absolute path:: + #Unix/Mac - 4 initial slashes in total engine = create_engine('sqlite:////absolute/path/to/foo.db') + #Windows + engine = create_engine('sqlite:///C:\\path\\to\\foo.db') + #Windows alternative using raw string + engine = create_engine(r'sqlite:///C:\path\to\foo.db') To use a SQLite ``:memory:`` database, specify an empty URL:: |