Title: experimenting with sqlite json · Issue #850 · winpython/winpython · GitHub
Open Graph Title: experimenting with sqlite json · Issue #850 · winpython/winpython
X Title: experimenting with sqlite json · Issue #850 · winpython/winpython
Description: This is to get handy in json in sql here, tr DROP TABLE IF EXISTS packages; CREATE TABLE packages(datas JSON); pydef py_pydeptree(s): "get a json experience from pip" import pipdeptree as pdt pkgs = pdt.get_installed_distributions() dist...
Open Graph Description: This is to get handy in json in sql here, tr DROP TABLE IF EXISTS packages; CREATE TABLE packages(datas JSON); pydef py_pydeptree(s): "get a json experience from pip" import pipdeptree as pdt pkgs ...
X Description: This is to get handy in json in sql here, tr DROP TABLE IF EXISTS packages; CREATE TABLE packages(datas JSON); pydef py_pydeptree(s): "get a json experience from pip" import pipdeptree as...
Opengraph URL: https://github.com/winpython/winpython/issues/850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"experimenting with sqlite json","articleBody":"This is to get handy in json in sql\r\n\r\nhere, tr\r\n\r\n```\r\nDROP TABLE IF EXISTS packages;\r\nCREATE TABLE packages(datas JSON);\r\npydef py_pydeptree(s):\r\n \"get a json experience from pip\"\r\n import pipdeptree as pdt\r\n pkgs = pdt.get_installed_distributions()\r\n dist_index = pdt.build_dist_index(pkgs)\r\n tree = pdt.construct_tree(dist_index)\r\n result=pdt.render_json_tree(tree, indent=4).replace('\\n', '\\n') # no need to remove newline ?\r\n return (\"%s\" % result);\r\n\r\nINSERT INTO packages select py_pydeptree('hi');\r\n\r\n````\r\n\r\n\r\n````\r\n-- select datas from packages;\r\n--select json_type(datas) from packages;\r\n--select atom, fullkey, value from packages, json_tree(packages.datas) where json_tree.type NOT IN ('object','array');\r\n\r\nwith x as (select json_extract(Value,'$.key') package\r\n , json_extract(Value,'$.package_name') name\r\n , json_extract(Value,\"$.installed_version\")version\r\n , json_extract(Value,'$.dependencies') Dependancies\r\n from packages , json_each(packages.datas))\r\nselect * from x\r\n\r\n```","author":{"url":"https://github.com/stonebig","@type":"Person","name":"stonebig"},"datePublished":"2020-05-02T11:12:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/850/winpython/issues/850"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3157f55-05bc-effc-287e-369d5022a89a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93F0:1AFD6B:3774C8:4A18BB:6973EBC0 |
| html-safe-nonce | 057fbbbc5fa07639b89a346e9ccdd6447ab7a668502709eda213593af3782546 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0YwOjFBRkQ2QjozNzc0Qzg6NEExOEJCOjY5NzNFQkMwIiwidmlzaXRvcl9pZCI6IjM5NTg0Nzg2ODk2MTIwNzY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 29fdfd4e69a18fd7c82c0d50d20bb9ec7a039421887cf217362bffb9d3ff1828 |
| hovercard-subject-tag | issue:611162069 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/winpython/winpython/850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8c4fd95282a64af4b25ad2962b51b297260a776aab22ce849d1404b949ebbb5/winpython/winpython/issues/850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8c4fd95282a64af4b25ad2962b51b297260a776aab22ce849d1404b949ebbb5/winpython/winpython/issues/850 |
| og:image:alt | This is to get handy in json in sql here, tr DROP TABLE IF EXISTS packages; CREATE TABLE packages(datas JSON); pydef py_pydeptree(s): "get a json experience from pip" import pipdeptree as pdt pkgs ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stonebig |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99794f659b61e238a7ec37595eeb36b54a0ba1f2ae246f51ccb8ac5e4f08812e |
| turbo-cache-control | no-preview |
| go-import | github.com/winpython/winpython git https://github.com/winpython/winpython.git |
| octolytics-dimension-user_id | 8850436 |
| octolytics-dimension-user_login | winpython |
| octolytics-dimension-repository_id | 24275324 |
| octolytics-dimension-repository_nwo | winpython/winpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24275324 |
| octolytics-dimension-repository_network_root_nwo | winpython/winpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b15a65f03216f079a4ae509ff400d3e2ce03b58 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width