[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f9g1Mxv2Nux4LHXrYr6CzAJVAhcJK3P70BrM3e8_1IhE":3,"$fbtQiTQWZsmZuW695Npk6deuRdFJStXL-Vq86jb4Zhs0":28,"$fOzeLwp_dU_RWIyZxtKPzE4aTSVta0ECJWg_6NeZCzqg":60,"$fcYOKEr4m32EvOD36IH-5Dc6R4p7UQTDhJEzNnIloJLk":74},{"success":4,"data":5},true,[6,13,18,23],{"id":7,"name":8,"slug":9,"description":10,"color":11,"postCount":12},"b14ff5c7-a673-4cb1-a9e5-c785069b2938","生活","life","生活随笔与日常分享",null,0,{"id":14,"name":15,"slug":16,"description":17,"color":11,"postCount":12},"9ca4490e-c5a6-4b61-945c-4db21d224507","设计","design","UI\u002FUX 设计与创意",{"id":19,"name":20,"slug":21,"description":22,"color":11,"postCount":12},"e6b59e04-130e-4da0-851f-64042040f4f6","技术","tech","技术教程与开发经验",{"id":24,"name":25,"slug":26,"description":27,"color":11,"postCount":12},"a102062c-2d51-415b-bc5c-5b89b36f6e3f","动漫","anime","动漫点评与推荐",{"success":4,"data":29},[30,34,38,42,46,50,54,58],{"id":31,"name":32,"slug":33,"postCount":12},"206928ae-ba3f-4c77-8994-79492b2add99","CSS","css",{"id":35,"name":36,"slug":37,"postCount":12},"ba35b189-11b7-4d0b-b0fd-88d28f2ee42b","Drizzle","drizzle",{"id":39,"name":40,"slug":41,"postCount":12},"e9562b7b-3cda-465d-981c-da2d2d05d853","Nuxt","nuxt",{"id":43,"name":44,"slug":45,"postCount":12},"69582ea6-6de4-4904-aec2-90e22716fc8c","PostgreSQL","postgresql",{"id":47,"name":48,"slug":49,"postCount":12},"76f19a84-111a-4cde-9183-d65ed4af132e","TypeScript","typescript",{"id":51,"name":52,"slug":53,"postCount":12},"2b723922-5d0f-4618-879a-6d670e266bb8","Vue.js","vuejs",{"id":55,"name":56,"slug":57,"postCount":12},"2565cae5-f282-42f9-85fe-a193aedce119","前端","frontend",{"id":59,"name":25,"slug":26,"postCount":12},"f402d5e9-2817-4c35-b8a3-12e310900f4c",{"success":4,"data":61},{"id":62,"title":63,"slug":64,"content":65,"summary":66,"coverUrl":11,"readingTime":11,"viewCount":67,"publishedAt":68,"createdAt":69,"author":70,"categories":72,"tags":73,"commentCount":12},"07081d84-8062-4ffd-a293-c11ce4ecbf61","Drizzle ORM 入门：在 Nuxt 4 中使用类型安全的数据库","drizzle-orm-nuxt4-guide","# Drizzle ORM 入门：在 Nuxt 4 中使用类型安全的数据库\n\n## 为什么选择 Drizzle？\n\nDrizzle 是一个轻量级的 TypeScript ORM，相比 Prisma 有着更小的包体积和更高的性能。\n\n## 定义 Schema\n\n```typescript\nimport { pgTable, uuid, varchar, text, timestamp } from 'drizzle-orm\u002Fpg-core'\n\nexport const posts = pgTable('posts', {\n  id: uuid('id').defaultRandom().primaryKey(),\n  title: varchar('title', { length: 255 }).notNull(),\n  slug: varchar('slug', { length: 255 }).unique().notNull(),\n  content: text('content').notNull(),\n  createdAt: timestamp('created_at').defaultNow(),\n})\n```\n\n## 查询数据\n\n```typescript\nimport { db } from '~~\u002Fserver\u002Futils\u002Fdb'\nimport { posts } from '~~\u002Fdrizzle\u002Fschema'\nimport { eq } from 'drizzle-orm'\n\nconst allPosts = await db.select().from(posts)\nconst post = await db.select().from(posts).where(eq(posts.slug, 'my-post')).limit(1)\n```\n\nDrizzle 的类型安全让开发体验非常丝滑！","Drizzle ORM 是一个轻量级 TypeScript ORM，本文介绍如何在 Nuxt 4 项目中集成 Drizzle，包括 Schema 定义和基本查询操作。",3,"2026-05-29T13:48:40.051Z","2026-05-29T17:47:20.369Z",{"username":71,"displayName":71},"admin",[],[],{"success":4,"data":75},[]]