MCPcopy
hub / github.com/llmware-ai/llmware / connect

Method connect

llmware/resources.py:3080–3089  ·  view source on GitHub ↗

Connect to SQLite DB - using configuration parameters in SQLiteConfig

(self, db_name=None, collection_name=None)

Source from the content-addressed store, hash-verified

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
3092class _MongoConnect:

Callers

nothing calls this directly

Calls 2

get_uri_stringMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected