Connect to SQLite DB - using configuration parameters in SQLiteConfig
(self, db_name=None, collection_name=None)
| 3078 | logger.info("_SQliteConnect - Setting up LLMWare Workspace.") |
| 3079 | |
| 3080 | def connect(self, db_name=None, collection_name=None): |
| 3081 | |
| 3082 | """Connect to SQLite DB - using configuration parameters in SQLiteConfig""" |
| 3083 | |
| 3084 | # db_file = os.path.join(SQLiteConfig.get_db_fp(), "sqlite_llmware.db") |
| 3085 | db_file = SQLiteConfig.get_uri_string() |
| 3086 | |
| 3087 | self.conn = sqlite3.connect(db_file) |
| 3088 | |
| 3089 | return self.conn |
| 3090 | |
| 3091 | |
| 3092 | class _MongoConnect: |
nothing calls this directly
no test coverage detected