pymensago/userprofile.py
def reset_db(self) -> RetVal:
		'''This function reinitializes the database to empty.
		
		Returns:
		  * 'connection': (sqlite3.Connection) an connection instance to the database
		
		Notes:
			All data is IRREVOCABLY deleted from the database using this call, including
			keys, user data, and application settings. You have been warned.
		'''
		
		dbpath = os.path.join(self.path, 'storage.db')
		if os.path.exists(dbpath):
			try:
				os.remove(dbpath)
			except Exception as e:
				RetVal().wrap_exception(e)
		
		self.db = sqlite3.connect(dbpath)
		cursor = self.db.cursor()

		global _db_setup_cmds
		for sqlcmd in _db_setup_cmds:
			cursor = self.db.cursor()
			cursor.execute(sqlcmd)
		self.db.commit()
		return RetVal().set_value('connection', self.db)
This function reinitializes the database to empty.
		
		Returns:
		  * 'connection': (sqlite3.Connection) an connection instance to the database
		
		Notes:
			All data is IRREVOCABLY deleted from the database using this call, including
			keys, user data, and application settings. You have been warned.
		
This function reinitializes the database to empty.
This function reinitializes the database to empty .
def reset_db(self) -> RetVal:
		dbpath = os.path.join(self.path, 'storage.db')
		if os.path.exists(dbpath):
			try:
				os.remove(dbpath)
			except Exception as e:
				RetVal().wrap_exception(e)
		self.db = sqlite3.connect(dbpath)
		cursor = self.db.cursor()
		global _db_setup_cmds
		for sqlcmd in _db_setup_cmds:
			cursor = self.db.cursor()
			cursor.execute(sqlcmd)
		self.db.commit()
		return RetVal().set_value('connection', self.db)
def reset_db ( self ) -> RetVal : dbpath = os . path . join ( self . path , 'storage.db' ) if os . path . exists ( dbpath ) : try : os . remove ( dbpath ) except Exception as e : RetVal ( ) . wrap_exception ( e ) self . db = sqlite3 . connect ( dbpath ) cursor = self . db . cursor ( ) global _db_setup_cmds for sqlcmd in _db_setup_cmds : cursor = self . db . cursor ( ) cursor . execute ( sqlcmd ) self . db . commit ( ) return RetVal ( ) . set_value ( 'connection' , self . db )
This function reinitializes the database to empty.
This function reinitializes the database to empty .
'''This function reinitializes the database to empty.
		
		Returns:
		  * 'connection': (sqlite3.Connection) an connection instance to the database
		
		Notes:
			All data is IRREVOCABLY deleted from the database using this call, including
			keys, user data, and application settings. You have been warned.
		'''
'connection': (sqlite3.Connection) an connection instance to the database
' connection ' : ( sqlite3 . Connection ) an connection instance to the database
self