mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	This is the implementation of the new DB connections API (grant proposal 2019).
Summary
The new API makes it available to QGIS core a new interface for provider connections and will allow to:
    replace the provider specific QgsSettings management in QGIS4 (save/load connections from the settings) NOT IN SCOPE FOR NOW.
    provide a unified API for common operations on DB connections:
        executeSql and get the results
        list tables names and properties and schemas
        create a new vector table (no rasters for now)
        create/rename/drop schemas and tables
        vacuum
       ....
		
	
			
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| %Exception QgsCsException(SIP_Exception) /PyName=QgsCsException/
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgsexception.h>
 | |
| %End
 | |
| %RaiseCode
 | |
|   SIP_BLOCK_THREADS
 | |
|   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
 | |
|   SIP_UNBLOCK_THREADS
 | |
| %End
 | |
| };
 | |
| 
 | |
| %Exception QgsProcessingException(SIP_Exception) /PyName=QgsProcessingException/
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgsexception.h>
 | |
| %End
 | |
| %RaiseCode
 | |
|   SIP_BLOCK_THREADS
 | |
|   PyErr_SetString(sipException_QgsProcessingException, sipExceptionRef.what().toUtf8().constData() );
 | |
|   SIP_UNBLOCK_THREADS
 | |
| %End
 | |
| };
 | |
| 
 | |
| %Exception QgsException(SIP_Exception) /PyName=QgsException/
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgsexception.h>
 | |
| %End
 | |
| %RaiseCode
 | |
|   SIP_BLOCK_THREADS
 | |
|   PyErr_SetString(sipException_QgsException, sipExceptionRef.what().toUtf8().constData() );
 | |
|   SIP_UNBLOCK_THREADS
 | |
| %End
 | |
| };
 | |
| 
 | |
| 
 | |
| %Exception QgsProviderConnectionException(SIP_Exception) /PyName=QgsProviderConnectionException/
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgsexception.h>
 | |
| %End
 | |
| %RaiseCode
 | |
|   SIP_BLOCK_THREADS
 | |
|   PyErr_SetString(sipException_QgsProviderConnectionException, sipExceptionRef.what().toUtf8().constData() );
 | |
|   SIP_UNBLOCK_THREADS
 | |
| %End
 | |
| };
 |