Title: Format BLOBs as UniqueIdentifier · Issue #2342 · sqlitebrowser/sqlitebrowser · GitHub
Open Graph Title: Format BLOBs as UniqueIdentifier · Issue #2342 · sqlitebrowser/sqlitebrowser
X Title: Format BLOBs as UniqueIdentifier · Issue #2342 · sqlitebrowser/sqlitebrowser
Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Format BLOBs as UniqueIdentifier · Issue #2342 · sqlitebrowser/sqlitebrowser
Open Graph Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Format BLOBs as Unique...
X Description: Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Format...
Opengraph URL: https://github.com/sqlitebrowser/sqlitebrowser
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Format BLOBs as UniqueIdentifier","articleBody":"Describe the new feature\r\n--------------------------\r\nWhen you create table column with \"UNIQUEIDENTIFIER\" type, SQLite always stores its values as BLOB. It would be great to add human-readable formatting for such columns.\r\n\r\nAdditional info\r\n---------------\r\nNow SQLiteBrowser doesn't display BLOB data by default and I use the following custom display format:\r\n`substr(hex(\"column\"), 7, 2) || substr(hex(\"column\"), 5, 2) || substr(hex(\"column\"), 3, 2) || substr(hex(\"column\"), 1, 2) || '-' || substr(hex(\"column\"), 11, 2) || substr(hex(\"column\"), 9, 2) || '-' || substr(hex(\"column\"), 15, 2) || substr(hex(\"column\"), 13, 2) || '-' || substr(hex(\"column\"), 17, 4) || '-' || substr(hex(\"column\"), 21, 12)`\r\n(this solution came from here: https://neosmart.net/blog/2018/converting-a-binary-blob-guid-to-text-in-sql)\r\nBut it's very uncomfortable to rewrite this code for each column name.\r\nI believe I am not the only person who need this feature.\r\nE.g. it can be easily added to `ColumnDisplayFormatDialog.cpp` with the following lines (I am not a C++ developer):\r\n```\r\nui->comboDisplayFormat->addItem(tr(\"UniqueIdentifier blob\"), \"uuidblob\");\r\n...\r\nformatFunctions[\"uuidblob\"] = \"substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 7, 2) || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 5, 2) || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 3, 2) || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 1, 2) || '-' || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 11, 2) || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 9, 2) || '-' || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 15, 2) || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 13, 2) || '-' || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 17, 4) || '-' || substr(hex(\" + sqlb::escapeIdentifiercolumn_name + \"), 21, 12)\";\r\n```\r\n#### Default displaying of UniqueIdentifier column:\r\n\r\n#### Formatted displaying of UniqueIdentifier column:\r\n\r\n\r\n","author":{"url":"https://github.com/maseal","@type":"Person","name":"maseal"},"datePublished":"2020-07-23T07:04:42Z","url":"https://github.com/sqlitebrowser/sqlitebrowser/issues/2342"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:ce9c6daf-c219-4802-ec09-faa1e2581a10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3A0:2DE76:207AB1:2B0357:6AFD12D9 |
| html-safe-nonce | 24b05633da643bf2144801f8ac8bedb6fcb1d756654761c7ea353343e2491bc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0EwOjJERTc2OjIwN0FCMToyQjAzNTc6NkFGRDEyRDkiLCJ2aXNpdG9yX2lkIjoiNjQwNjM4NDQ0NjUyNzk0NTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cf63d5423ec816c30fda4c567a3e8b43980a5db8cde8ed1b9e600e1035249f84 |
| hovercard-subject-tag | repository:19416551 |
| 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/sqlitebrowser/sqlitebrowser/issues/2342 |
| twitter:image | https://opengraph.githubassets.com/d2eb7ede5a7e7597c1d3bf981cc413c2173905b84303964dffe614dea6432db9/sqlitebrowser/sqlitebrowser |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2eb7ede5a7e7597c1d3bf981cc413c2173905b84303964dffe614dea6432db9/sqlitebrowser/sqlitebrowser |
| og:image:alt | Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at: - Format BLOBs as Unique... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| turbo-cache-control | no-cache |
| go-import | github.com/sqlitebrowser/sqlitebrowser git https://github.com/sqlitebrowser/sqlitebrowser.git |
| octolytics-dimension-user_id | 7454271 |
| octolytics-dimension-user_login | sqlitebrowser |
| octolytics-dimension-repository_id | 19416551 |
| octolytics-dimension-repository_nwo | sqlitebrowser/sqlitebrowser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19416551 |
| octolytics-dimension-repository_network_root_nwo | sqlitebrowser/sqlitebrowser |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width