connection_file

View page source

Get File Name For a Database Connection

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.