@@ -1959,11 +1959,11 @@ class Connection:
19591959 def load_extension (self , filename : str , entrypoint : str | None = None ) -> None :
19601960 """Loads *filename* as an `extension <https://www.sqlite.org/loadext.html>`_
19611961
1962- :param filename: The file to load.
1962+ :param filename: The file to load, the extension is optional
19631963
19641964 :param entrypoint: The initialization method to call. If this
1965- parameter is not supplied then the SQLite default of
1966- ``sqlite3_extension_init`` is used .
1965+ parameter is not supplied, then SQLite tries :code:`sqlite3_extension_init`
1966+ and a name derived from the filename .
19671967
19681968 :raises ExtensionLoadingError: If the extension could not be
19691969 loaded. The exception string includes more details.
@@ -1972,7 +1972,8 @@ class Connection:
19721972
19731973 .. seealso::
19741974
1975- * :meth:`~Connection.enable_load_extension`"""
1975+ * :meth:`~Connection.enable_load_extension`
1976+ * :func:`apsw.sqlite_extra.load`"""
19761977 ...
19771978
19781979 loadextension = load_extension ## OLD-NAME
@@ -6792,11 +6793,11 @@ class AsyncConnection:
67926793 async def load_extension (self , filename : str , entrypoint : str | None = None ) -> None :
67936794 """Loads *filename* as an `extension <https://www.sqlite.org/loadext.html>`_
67946795
6795- :param filename: The file to load.
6796+ :param filename: The file to load, the extension is optional
67966797
67976798 :param entrypoint: The initialization method to call. If this
6798- parameter is not supplied then the SQLite default of
6799- ``sqlite3_extension_init`` is used .
6799+ parameter is not supplied, then SQLite tries :code:`sqlite3_extension_init`
6800+ and a name derived from the filename .
68006801
68016802 :raises ExtensionLoadingError: If the extension could not be
68026803 loaded. The exception string includes more details.
@@ -6805,7 +6806,8 @@ class AsyncConnection:
68056806
68066807 .. seealso::
68076808
6808- * :meth:`~Connection.enable_load_extension`"""
6809+ * :meth:`~Connection.enable_load_extension`
6810+ * :func:`apsw.sqlite_extra.load`"""
68096811 ...
68106812
68116813 open_flags : int
0 commit comments