We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f98c89d commit 7fd3f05Copy full SHA for 7fd3f05
doc/build/core/engines.rst
@@ -151,9 +151,14 @@ For a relative file path, this requires three slashes::
151
# where <path> is relative:
152
engine = create_engine('sqlite:///foo.db')
153
154
-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::
155
156
+ #Unix/Mac - 4 initial slashes in total
157
engine = create_engine('sqlite:////absolute/path/to/foo.db')
158
+ #Windows
159
+ engine = create_engine('sqlite:///C:\\path\\to\\foo.db')
160
+ #Windows alternative using raw string
161
+ engine = create_engine(r'sqlite:///C:\path\to\foo.db')
162
163
To use a SQLite ``:memory:`` database, specify an empty URL::
164
0 commit comments