Discuz! Board

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

To summarize creating an extension

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 17:47:47 | 顯示全部樓層 |閱讀模式
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.  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 easy 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 can be useful. The repository currently contains the following examples Extended Example Description Audit Log Context Provide the current user's context as an audit log trigger No callbacks Add a way to.

Start an interactive transaction without a callback Calculated fields Add a virtual calculated field to the result object input Transform Transform the input parameters passed to the client query to fi photo editing servies lter the result set Input validation Run custom validation logic on the input parameters passed to the mutation method Instance method Add similar methods to the result object Field types Use strong for the data stored in the column Type runtime parsing model filters Add reusable filters that can be combined into complex conditions on the model Obfuscate fields Prevent sensitive data such as password fields from being included in results Query logging Encapsulate client-side queries with simple query timing and logging Read-only client Create a client that only allows read operations Retry transactions Add a retry mechanism for transactions with exponential backoff and thrashing Row-level security Use row-level security policies to isolate data in multi-tenant applications Static.



Methods Add self-service to the client model Define query methods Transform fields Demonstrate how to use result extensions to transform query results and add them to your application Existence methods Demonstrate how to add existence methods to all models Demonstrate your extension If you want to dive deeper into client-side extensions be sure to check out our previous In the article Clients Become More Flexible Client Extensions we would also love to hear about your extensions and maybe even try them out. Be sure to showcase your work in our or Prism Announcements Release Don’t miss the next post Subscribe to the Newsletter Name Built on a Proven Community Now Live Jarrell Jon Harrell Jon Harrell We’re super excited to join please Read on to learn more about how we build community, what to expect.



回復

使用道具 舉報

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

本版積分規則

Archiver|手機版|自動贊助|z

GMT+8, 19:20 , Processed in 0.033843 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

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