diff options
author | Jim Hokanson <jim.hokanson@gmail.com> | 2014-09-14 00:25:41 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-14 09:04:23 -0400 |
commit | 8db30d7a2bc3a47565117be758b7f2d1b8b62863 (patch) | |
tree | 42fc815a0a934dccfa8fab7dc1783e8386c52037 | |
parent | 6434b6b9ac00cb934098bd7a1e6dd5311b88fdd2 (diff) | |
download | sqlalchemy-8db30d7a2bc3a47565117be758b7f2d1b8b62863.tar.gz |
Updated documenation for engines.rst
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:: |