Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 2|回復: 0

Today we are excited to announce

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2023-12-27 11:26:15 | 顯示全部樓層 |閱讀模式
Available, this new feature allows users to extend and customize the client to suit their individual use cases. Customize the client to fit the needs of your codebase We've released the client extension as a preview feature. the general availability of the client extension. The extension has proven to be very useful and powerful during the preview period and even powers products such as Simple and Easy to Use. If this is the first time you have heard of client extensions, don’t worry. We have an existing blog post that goes into depth about its usage. To summarize creating an extension is like using this code snippet which shows how to use an extension to add a new method to a model. If you need a method on all your models you can even use the built-in functionality. To take a deeper look at what we have done with extensions in this release For changes please see our release notes Community-Built Extensions While client extensions are now generally available we've seen some cool examples.

What a great contribution to our community. It's also ea photo editing servies sy to import and use external client extensions Reference examples for various use cases In addition to community contributions we also have a set of reference examples in the examples repository showcasing different areas where we think client extensions might be useful. The repository currently contains the following examples Extended Example Description Audit log context Provides the current user's Context as an audit log trigger No callbacks Add a way to start interactive transactions without callbacks Calculated fields Add virtual calculated fields to the result object Input transformation Transform the input parameters passed to the client query to filter the result set Input validation pairs Input parameters passed to mutation methods Run custom validation logic Instance methods Add similar methods to the result object Field types Use strong typing for data stored in columns Runtime parsing model filters Add reusable.



Filters that can be composed into models Complex conditions obfuscate fields Prevent sensitive data such as password fields from being included in results Query logging Encapsulate client queries with simple query timing and logging Read-only clients Create a read-only client Retry transactions with exponential backoff and fluttered transactions. Adding a retry mechanism. Row-level security. Using row-level security policies to isolate data in multi-tenant applications. Static methods. Adding custom query methods to client models. Transform fields. Demonstrates how to use result extensions to transform query results and convert Adding Presence Methods to Application Demonstration How to Add Presence Methods to All Models Demonstration of Your Extensions If you'd like a deeper dive into client-side extensions be sure to check out our previous article Clients Becoming More Flexible Client-side Extensions We'd also love .


回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2025-4-27 19:47 , Processed in 1.365480 second(s), 18 queries .

抗攻擊 by GameHost X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |