I need to get values from non spatial table in geopackage via Python. Do You have any ideas how to get this?
I'm trying get this using spatialite3
library and simple string select query but I have receive error message "there is no table_name in database
"
When I'm trying get this from qgis layer list I can't find appropriate way to do this. I'm trying this:
database = r'path_to_my_geopackage.gpkg'
uri = QgsDataSourceUri()
uri.setDatabase(database)
schema = ''
table = 'tablename'
geomColumn = ''
content = uri.setDataSource(schema,table,geomColumn)