you could use the following query to get the main items:
select id,share_with,uid_owner,uid_initiator,file_target,expiration from nextcloud.nc_share;
nextcloud with your database name (most likely the same), and change
nc with your prefix (could be
If you want to see all values use:
select * from nextcloud.nc_share;
But this would give values which are not really valuable unless more in-depth scripting is being done to alter NC database.