Title: Adding more SQL function definition · Issue #9 · allwefantasy/sql-code-intelligence · GitHub
Open Graph Title: Adding more SQL function definition · Issue #9 · allwefantasy/sql-code-intelligence
X Title: Adding more SQL function definition · Issue #9 · allwefantasy/sql-code-intelligence
Description: sql-code-intelligence provides more accurate and detailed information for function completion. However, in order to achieve this, we need function definition in SQL. sql-code-intelligence has a mechanism that enables engineers to do this...
Open Graph Description: sql-code-intelligence provides more accurate and detailed information for function completion. However, in order to achieve this, we need function definition in SQL. sql-code-intelligence has a mec...
X Description: sql-code-intelligence provides more accurate and detailed information for function completion. However, in order to achieve this, we need function definition in SQL. sql-code-intelligence has a mec...
Opengraph URL: https://github.com/allwefantasy/sql-code-intelligence/issues/9
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding more SQL function definition","articleBody":"sql-code-intelligence provides more accurate and detailed information for function completion. However, in order to achieve this, we need function definition in SQL. \r\nsql-code-intelligence has a mechanism that enables engineers to do this job.\r\n\r\nFor example, you can register `split` function in this project like the following:\r\n\r\n```scala\r\nclass Splitter extends FuncReg {\r\n\r\n override def register = {\r\n val func = MLSQLSQLFunction.apply(\"split\").\r\n funcParam.\r\n param(\"str\", DataType.STRING, false, Map(\"zhDoc\" -> \"待切割字符\")).\r\n param(\"pattern\", DataType.STRING, false, Map(\"zhDoc\" -> \"分隔符\")).\r\n func.\r\n returnParam(DataType.ARRAY, true, Map(\r\n \"zhDoc\" ->\r\n \"\"\"\r\n |split函数。用于切割字符串,返回字符串数组\r\n |\"\"\".stripMargin\r\n )).\r\n build\r\n func\r\n }\r\n\r\n}\r\n```\r\n\r\nThen you can put this class under the package `tech.mlsql.autosuggest.funcs`.\r\nThey will be autoloaded at system startup.\r\n\r\n","author":{"url":"https://github.com/allwefantasy","@type":"Person","name":"allwefantasy"},"datePublished":"2020-07-02T06:23:10Z","url":"https://github.com/allwefantasy/sql-code-intelligence/issues/9"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42f8e3d2-44a8-c7c5-1c54-2c00dbceccaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B65E:20F00E:60A2A9:80C808:6B00AA3A |
| html-safe-nonce | 6d68a0845111c530cb84116c9260cca72d7b8f0942dda09f8cd1dd119bca3ecf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjVFOjIwRjAwRTo2MEEyQTk6ODBDODA4OjZCMDBBQTNBIiwidmlzaXRvcl9pZCI6IjgwMjAyNjEwNjIzNDU1MzQwMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d12636f89361e9e00d1a8c84766390fdf357dbe0fcdb4dbfcd253ef3ee1b4e2 |
| hovercard-subject-tag | issue:649669781 |
| 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/allwefantasy/sql-code-intelligence/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd0d99b24055bf4aeefd3ca918e4abe9a34237119fb8078cc7c7c3756f8b4ff5/allwefantasy/sql-code-intelligence/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd0d99b24055bf4aeefd3ca918e4abe9a34237119fb8078cc7c7c3756f8b4ff5/allwefantasy/sql-code-intelligence/issues/9 |
| og:image:alt | sql-code-intelligence provides more accurate and detailed information for function completion. However, in order to achieve this, we need function definition in SQL. sql-code-intelligence has a mec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | allwefantasy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/allwefantasy/sql-code-intelligence git https://github.com/allwefantasy/sql-code-intelligence.git |
| octolytics-dimension-user_id | 797758 |
| octolytics-dimension-user_login | allwefantasy |
| octolytics-dimension-repository_id | 272407289 |
| octolytics-dimension-repository_nwo | allwefantasy/sql-code-intelligence |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 272407289 |
| octolytics-dimension-repository_network_root_nwo | allwefantasy/sql-code-intelligence |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width