# Request for example of incremental table implementation in Go

**URL:** <https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646>\
**Category:** CloudQuery SDK\
**Created:** [October 20, 2023, 11:58am UTC](https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646 "2023-10-20T11:58:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharing-sunbird](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sharing-sunbird](https://community.cloudquery.io/u/sharing-sunbird)\
**Post date:** [October 20, 2023, 11:58am UTC](https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646/1 "2023-10-20T11:58:35Z")

</div>

Heyo!

Does anyone possibly have an example of an incremental table implementation in Go?  
Nevermind, found one 😅 [example here](https://github.com/cloudquery/cloudquery/blob/98f3e2c73c94b65f6ae30a55663b6445ebf1146a/plugins/source/stripe/resources/services/invoices/invoices.go#L33)

---

<div class="post-metadata">

**Author:** ![herman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/herman/32/27_2.png) [@herman](https://community.cloudquery.io/u/herman)\
**Post date:** [October 20, 2023, 12:04pm UTC](https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646/2 "2023-10-20T12:04:46Z")

</div>

Hi 👋 Yes, there are a few, the Hacker News plugin being the best documented, meant to serve as an example: [Hacker News Plugin](https://github.com/cloudquery/cloudquery/blob/main/plugins/source/hackernews/resources/services/items/items_fetch.go)

It’s also a bit more complicated than some of the others, so Stripe is also a good example 🙂

Happy to help if you have questions though!

---

<div class="post-metadata">

**Author:** ![sharing-sunbird](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sharing-sunbird](https://community.cloudquery.io/u/sharing-sunbird)\
**Post date:** [October 20, 2023, 12:06pm UTC](https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646/3 "2023-10-20T12:06:50Z")

</div>

Ah awesome, thank you so much!  
[https://github.com/cloudquery/cloudquery/blob/main/plugins/source/hackernews/resources/services/items/items\_fetch.go#L34](https://github.com/cloudquery/cloudquery/blob/main/plugins/source/hackernews/resources/services/items/items_fetch.go#L34)

Is the expectation that there should only 1 cursor per table, or are we fine to create multiple cursors per table (e.g., 1 cursor per GitHub org per table in the GitHub plugin)?

---

<div class="post-metadata">

**Author:** ![herman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/herman/32/27_2.png) [@herman](https://community.cloudquery.io/u/herman)\
**Post date:** [October 20, 2023, 12:21pm UTC](https://community.cloudquery.io/t/request-for-example-of-incremental-table-implementation-in-go/646/4 "2023-10-20T12:21:38Z")

</div>

No, this happens to be the case for the Hacker News plugin, but if the table makes use of multiplexing, you’d usually expect the key to be able to uniquely identify both the table and the client. For example, here’s how it’s done for the AWS CloudTrail Events table:

```go
https://github.com/cloudquery/cloudquery/blob/0b74613eaed7183d9672fddde86f0d5753f05d60/plugins/source/aws/resources/services/cloudtrail/events.go#L53-L65

```
