diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2022-01-18 21:58:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 21:58:47 (GMT) |
commit | 0ae22577606f1b52e3b6c2de6c5b307518044605 (patch) | |
tree | eabf4a663c6c0ba6e7138d7c4c02602952b3ab36 /Doc/tools | |
parent | 8527f7a722aee3d9025267cc7ff2eb8afa38d166 (diff) | |
download | cpython-0ae22577606f1b52e3b6c2de6c5b307518044605.zip cpython-0ae22577606f1b52e3b6c2de6c5b307518044605.tar.gz cpython-0ae22577606f1b52e3b6c2de6c5b307518044605.tar.bz2 |
[3.9] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) (#30672)
* bpo-46402: Promote SQLite URI tricks in `sqlite3` docs (GH-30660)
Provide some examples of URI parameters in sqlite connect().
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
(cherry picked from commit bdf2ab1887a2edfb089a3c2a1590cf1e84ea0048)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update suspicious rules
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/susp-ignored.csv | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv index 02fe917..48480ed 100644 --- a/Doc/tools/susp-ignored.csv +++ b/Doc/tools/susp-ignored.csv @@ -213,7 +213,10 @@ library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])" library/socket,,:len,fds.frombytes(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)]) library/sqlite3,,:year,"cur.execute(""select * from lang where first_appeared=:year"", {""year"": 1972})" library/sqlite3,,:memory, -library/sqlite3,,:path,"db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)" +library/sqlite3,,:template,"con = sqlite3.connect(""file:template.db?mode=ro"", uri=True)" +library/sqlite3,,:nosuchdb,"con = sqlite3.connect(""file:nosuchdb.db?mode=rw"", uri=True)" +library/sqlite3,,:mem1,"con1 = sqlite3.connect(""file:mem1?mode=memory&cache=shared"", uri=True)" +library/sqlite3,,:mem1,"con2 = sqlite3.connect(""file:mem1?mode=memory&cache=shared"", uri=True)" library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group" library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc." library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com" |