Prev
Next
Index->
contents
reference
index
search
external
Up->
dismod_at
python
connection_file
@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\W}[1]{ \; #1 \; }@)@
This is dismod_at-20221105 documentation:
Here is a link to its
current documentation
.
Get File Name For a Database Connection
Syntax
Purpose
connection
file_name
Example
Syntax
file_name
= dismod_at.connection_file_name(
connection
)
Purpose
This function can be used for reporting errors that occur when using a database connection.
connection
The is a database connection returned by
create_connection
.
file_name
The return value is a
str
containing the name of the file where the data base is stored.
Example
The file
user_connection_file.py
contains an example and test of this routine.
Input File: python/dismod_at/connection_file.py