<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>数据库 on 杨刚的个人网站</title>
    <link>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/</link>
    <description>Recent content in 数据库 on 杨刚的个人网站</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <copyright>Copyright © 2018-2025 GradyYoung. All rights reserved.</copyright>
    <lastBuildDate>Fri, 11 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>1、database</title>
      <link>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/203a4502/</link>
      <pubDate>Wed, 14 May 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/203a4502/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;database 
    &lt;div id=&#34;database&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#database&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;Go 语言通过内置的 &lt;code&gt;database/sql&lt;/code&gt; 包支持关系型数据库的操作，同时也支持通过第三方库与 NoSQL 数据库进行交互。你可以通过标准的 SQL 操作与关系型数据库（如 MySQL、PostgreSQL）进行交互，也可以使用专门的库来连接 NoSQL 数据库（如 MongoDB、Redis）。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>2、gorm</title>
      <link>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/6b22f89c/</link>
      <pubDate>Fri, 11 Jul 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/6b22f89c/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;ORM概念介绍 
    &lt;div id=&#34;orm概念介绍&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#orm%e6%a6%82%e5%bf%b5%e4%bb%8b%e7%bb%8d&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;虽然Go的原生SQL包&lt;code&gt;database/sql&lt;/code&gt;提供了最大的灵活性和控制力，但在实际项目中，我们经常需要一种更便捷、更安全、更贴近业务逻辑的方式来操作数据库。这就是ORM（对象关系映射）技术的用武之地。&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>3、redis</title>
      <link>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/d0f783dc/</link>
      <pubDate>Mon, 23 Jun 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/2d3150b2/89595a91/db9fe107/d0f783dc/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;go-redis 
    &lt;div id=&#34;go-redis&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#go-redis&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;**支持多种客户端：**支持单机Redis Server、Redis Cluster、Redis Sentinel、Redis分片服务器&lt;/li&gt;
&lt;li&gt;**自动处理数据类型：**go-redis会根据不同的redis命令处理成指定的数据类型，不必进行繁琐的数据类型转换&lt;/li&gt;
&lt;li&gt;**功能完善：**go-redis支持管道(pipeline)、事务、pub/sub、Lua脚本、mock、分布式锁等功能&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;官网：https://redis.uptrace.dev/zh/&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
