mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-04 11:34:04 +00:00 
			
		
		
		
	Can get instance of database connection from anywhere in the application
This commit is contained in:
		@@ -45,6 +45,13 @@ export class DatabaseHelper {
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Get an instance of the connection to the database
 | 
			
		||||
	 */
 | 
			
		||||
	static getConnection() : Connection {
 | 
			
		||||
		return this.connection;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Query the database (SELECT)
 | 
			
		||||
	 * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user