CoCalc Public FilesBoolean-Cayley-graphs / sage-code / database_interface_sqlite3.pyOpen with one click!
Author: Paul Leopardi
Compute Environment: Ubuntu 18.04 (Deprecated)
1
# -*- coding: utf-8 -*-
2
3
r"""
4
Interface to SQL database via SQLite3, for use with
5
bent_function_cayley_graph_dashboard.py and similar.
6
7
AUTHORS:
8
9
- Paul Leopardi (2018-10-18): initial version
10
11
"""
12
13
#*****************************************************************************
14
# Copyright (C) 2018 Paul Leopardi [email protected]
15
#
16
# Distributed under the terms of the GNU General Public License (GPL)
17
# as published by the Free Software Foundation; either version 2 of
18
# the License, or (at your option) any later version.
19
# http://www.gnu.org/licenses/
20
#*****************************************************************************
21
22
import sqlite3
23
24
import boolean_cayley_graphs.classification_database_sqlite3 as cdb
25
26
27
auth = None
28
29
30
def connect_to_database(
31
selected_database,
32
auth):
33
conn = cdb.connect_to_database(
34
selected_database + '.db')
35
return conn
36
37
38
39