]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix rST typo
authorAlex Lowe <alowe@healthcarebluebook.com>
Thu, 11 Mar 2021 21:53:48 +0000 (15:53 -0600)
committerAlex Lowe <alowe@healthcarebluebook.com>
Thu, 11 Mar 2021 21:53:48 +0000 (15:53 -0600)
lib/sqlalchemy/dialects/mssql/pyodbc.py

index 4bcd2eb1bed156d80ae6538238af70a37597a7ea..9e8b2acda0b2e4744689f702fe3c67baca85c969 100644 (file)
@@ -92,7 +92,7 @@ library. More information about the authentication step can be found in
 After getting an engine, the credentials need to be sent to ``pyodbc.connect``
 each time a connection is requested. One way to do this is to set up an event
 listener on the engine that adds the credential token to the dialect's connect
-call. The following code snippet allows this:
+call. The following code snippet allows this::
 
     import struct
     from sqlalchemy import event
@@ -108,7 +108,7 @@ call. The following code snippet allows this:
             attrs_before[SQL_COPT_SS_ACCESS_TOKEN] = bytes(token_struct)
             return dialect.connect(*cargs, **cparams)
             
-This can then be used as follows:
+This can then be used as follows::
 
     creds = identity.DefaultAzureCredential()  # Or any other azure credentials.
     odbc_str = 'DRIVER={ODBC Driver 17 for SQL Server};DATABASE=myDb;server=my-server.database.windows.net'