diff options
-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:: |