<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>2825873215 (miaogaolin)</title>
    <link>https://ruby-china.org/2825873215</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>我给 “Go 语言” 开发了 6 个在线工具</title>
      <description>&lt;h2 id="工具快速访问"&gt;工具快速访问&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;  JSON 转 GO:&amp;nbsp;&lt;a href="https://www.printlove.cn/tools/json2go" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/json2go&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  YAML 转 GO:&amp;nbsp;&lt;a href="https://www.printlove.cn/tools/yaml2go" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/yaml2go&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  SQL 转 go-zero Model:&amp;nbsp;&lt;a href="https://printlove.cn/tools/sql2gozero" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2gozero&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  SQL 转 GORM Model:&amp;nbsp;&lt;a href="https://www.printlove.cn/tools/sql2gorm" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/sql2gorm&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  SQL 转 ElasticSearch DSL: &lt;a href="https://printlove.cn/tools/sql2es/" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2es/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;  SQL 转 entgo schema:&amp;nbsp;&lt;a href="https://printlove.cn/tools/sql2ent" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2ent&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="JSON转GO"&gt;JSON 转 GO&lt;/h2&gt;
&lt;p&gt;网址：&lt;a href="https://www.printlove.cn/tools/json2go" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/json2go&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="1. 有两种模式"&gt;1. 有两种模式&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;  转化 - 展开：json 中的所有对象都创建为新的 struct&lt;/li&gt;
&lt;li&gt;  转化 - 嵌套：json 中的对象都包含到一个 struct 中&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="2. 自定义tag"&gt;2. 自定义 tag&lt;/h3&gt;
&lt;p&gt;默认转化后的&lt;code&gt;tag&lt;/code&gt;是&lt;code&gt;json&lt;/code&gt;，也可以自定义，比如可以改为：gorm &lt;/p&gt;
&lt;h3 id="3. 效果图"&gt;3. 效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/11ed5a0b208e4e0c832725876882732e~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h2 id="YAML转GO"&gt;YAML 转 GO&lt;/h2&gt;
&lt;p&gt;网址：&lt;a href="https://www.printlove.cn/tools/yaml2go" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/yaml2go&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;将 yaml 格式自动转化为 Go Struct 结构。&lt;/p&gt;
&lt;h3 id="效果图"&gt;效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b20cefec10624d7885ef0a8d31b47859~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h2 id="SQL 转 ent"&gt;SQL 转 ent&lt;/h2&gt;
&lt;p&gt;网址：&lt;a href="https://printlove.cn/tools/sql2ent" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2ent&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="1. 效果图"&gt;1. 效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24fc88a51f224f89b731cceba9917ea8~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h3 id="2. 功能"&gt;2. 功能&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;此工具提供将 SQL 语句转化为 &lt;code&gt;ent schema&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;提供常见的数据库类型到 field 函数的转化&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="SQL 转 ElasticSearch DSL"&gt;SQL 转 ElasticSearch DSL&lt;/h2&gt;
&lt;p&gt;网址：&lt;a href="https://printlove.cn/tools/sql2es/" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2es/&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="1. 效果图"&gt;1. 效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/56d9a2b6d79841cab878b3729d1d127d~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h3 id="2. 当前支持"&gt;2. 当前支持&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;[x] sql and expression&lt;/li&gt;
&lt;li&gt;[x] sql or expression&lt;/li&gt;
&lt;li&gt;[x] equal(=) support&lt;/li&gt;
&lt;li&gt;[x] not equal(!=) support&lt;/li&gt;
&lt;li&gt;[x] gt(&amp;gt;) support&lt;/li&gt;
&lt;li&gt;[x] gte(&amp;gt;=) support&lt;/li&gt;
&lt;li&gt;[x] lt(&amp;lt;) support&lt;/li&gt;
&lt;li&gt;[x] lte(&amp;lt;=) support&lt;/li&gt;
&lt;li&gt;[x] sql in (eg. id in (1,2,3) ) expression&lt;/li&gt;
&lt;li&gt;[x] sql not in (eg. id not in (1,2,3) ) expression&lt;/li&gt;
&lt;li&gt;[x] paren bool support (eg. where (a=1 or b=1) and (c=1 or d=1))&lt;/li&gt;
&lt;li&gt;[x] sql like expression (currently use match phrase, perhaps will change to wildcard in the future)&lt;/li&gt;
&lt;li&gt;[x] sql order by support&lt;/li&gt;
&lt;li&gt;[x] sql limit support&lt;/li&gt;
&lt;li&gt;[x] sql not like expression&lt;/li&gt;
&lt;li&gt;[x] field missing check&lt;/li&gt;
&lt;li&gt;[x] support aggregation like count(*), count(field), min(field), max(field), avg(field)&lt;/li&gt;
&lt;li&gt;[x] support aggregation like stats(field), extended_stats(field), percentiles(field) which are not standard sql function&lt;/li&gt;
&lt;li&gt;[ ] null check expression(is null/is not null)&lt;/li&gt;
&lt;li&gt;[ ] join expression&lt;/li&gt;
&lt;li&gt;[ ] having support
## SQL 转 go-zero&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;网址：&lt;a href="https://printlove.cn/tools/sql2gozero" rel="nofollow" target="_blank"&gt;https://printlove.cn/tools/sql2gozero&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="1. 效果图"&gt;1. 效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8dc70512d76444e1833f4f5dca12dceb~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h3 id="2. 功能"&gt;2. 功能&lt;/h3&gt;
&lt;p&gt;和官方的 goctl 工具生成的代码是一样的，同样支持是否带缓存的 Model。&lt;/p&gt;
&lt;h2 id="SQL转GORM Model"&gt;SQL 转 GORM Model&lt;/h2&gt;
&lt;p&gt;网址：&lt;a href="https://www.printlove.cn/tools/sql2gorm" rel="nofollow" target="_blank"&gt;https://www.printlove.cn/tools/sql2gorm&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="1. 效果图"&gt;1. 效果图&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f6f46ece6bfb4e14a80aa8d19ba07061~tplv-k3u1fbpfcp-zoom-1.image" title="" alt=""&gt;&lt;/p&gt;
&lt;h3 id="2. 功能"&gt;2. 功能&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;支持多表&lt;/li&gt;
&lt;li&gt;支持引入包的导入&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>2825873215</author>
      <pubDate>Mon, 29 Nov 2021 16:13:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/41936</link>
      <guid>https://ruby-china.org/topics/41936</guid>
    </item>
    <item>
      <title>在线 SQL 转 ElasticSearch DSL</title>
      <description>&lt;p&gt;&lt;a href="https://printlove.cn/tools/sql2es/" rel="nofollow" target="_blank" title=""&gt;工具前往&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="效果图"&gt;效果图&lt;/h2&gt;
&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2825873215/3c593c9e-2b66-443d-b0ef-8ec0dbe6ae53.png!large" title="" alt=""&gt;&lt;/p&gt;
&lt;h2 id="当前支持"&gt;当前支持&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;[x] sql and expression&lt;/li&gt;
&lt;li&gt;[x] sql or expression&lt;/li&gt;
&lt;li&gt;[x] equal(=) support&lt;/li&gt;
&lt;li&gt;[x] not equal(!=) support&lt;/li&gt;
&lt;li&gt;[x] gt(&amp;gt;) support&lt;/li&gt;
&lt;li&gt;[x] gte(&amp;gt;=) support&lt;/li&gt;
&lt;li&gt;[x] lt(&amp;lt;) support&lt;/li&gt;
&lt;li&gt;[x] lte(&amp;lt;=) support&lt;/li&gt;
&lt;li&gt;[x] sql in (eg. id in (1,2,3) ) expression&lt;/li&gt;
&lt;li&gt;[x] sql not in (eg. id not in (1,2,3) ) expression&lt;/li&gt;
&lt;li&gt;[x] paren bool support (eg. where (a=1 or b=1) and (c=1 or d=1))&lt;/li&gt;
&lt;li&gt;[x] sql like expression (currently use match phrase, perhaps will change to wildcard in the future)&lt;/li&gt;
&lt;li&gt;[x] sql order by support&lt;/li&gt;
&lt;li&gt;[x] sql limit support&lt;/li&gt;
&lt;li&gt;[x] sql not like expression&lt;/li&gt;
&lt;li&gt;[x] field missing check&lt;/li&gt;
&lt;li&gt;[x] support aggregation like count(*), count(field), min(field), max(field), avg(field)&lt;/li&gt;
&lt;li&gt;[x] support aggregation like stats(field), extended_stats(field), percentiles(field) which are not standard sql function&lt;/li&gt;
&lt;li&gt;[ ] null check expression(is null/is not null)&lt;/li&gt;
&lt;li&gt;[ ] join expression&lt;/li&gt;
&lt;li&gt;[ ] having support&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>2825873215</author>
      <pubDate>Thu, 19 Aug 2021 10:51:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/41593</link>
      <guid>https://ruby-china.org/topics/41593</guid>
    </item>
  </channel>
</rss>
