# Tenant Management Support in Go Bindings

**URL:** <https://forums.foundationdb.org/t/tenant-management-support-in-go-bindings/3982>\
**Category:** Development\
**Created:** [May 26, 2023, 7:59pm UTC](https://forums.foundationdb.org/t/tenant-management-support-in-go-bindings/3982 "2023-05-26T19:59:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![griffin](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/griffin/32/1604_2.png) [@griffin](https://forums.foundationdb.org/u/griffin)\
**Post date:** [May 26, 2023, 7:59pm UTC](https://forums.foundationdb.org/t/tenant-management-support-in-go-bindings/3982/1 "2023-05-26T19:59:56Z")

</div>

Hello I put together a PR for Tenant Management for the Go bindings and have been able to test it in the build container. According to this [post](https://forums.foundationdb.org/t/contributing-to-fdb-operator-prs-limited-to-collaborators/3764/5) contributions are taken via the forums.

> **[Comparing apple:main...griffin:griffin/go-tenant-impl · apple/foundationdb](https://github.com/apple/foundationdb/compare/main...griffin:foundationdb:griffin/go-tenant-impl?expand=1)**
>
> FoundationDB - the open source, distributed, transactional key-value store - Comparing apple:main...griffin:griffin/go-tenant-impl · apple/foundationdb

A couple questions for the reviewer:

- Should I check for the `/xFF` [prefix restriction](https://apple.github.io/foundationdb/tenants.html?highlight=tenant#:~:text=Tenants%20can%20be%20created%20with%20any%20byte%2Dstring%20name%20that%20does%20not%20begin%20with%20the%20%5Cxff%20character.%20Once%20created%2C%20a%20tenant%20will%20be%20assigned%20an%20ID%20and%20a%20prefix%20where%20its%20data%20will%20reside.) in the bindings, I don’t see such a check in the Python bindings, but I’ve added such a check for Go
- I seem to be able to open a tenant even if it doesn’t exist.

Thank you!

---

<div class="post-metadata">

**Author:** ![griffin](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/griffin/32/1604_2.png) [@griffin](https://forums.foundationdb.org/u/griffin)\
**Post date:** [June 8, 2023, 4:01pm UTC](https://forums.foundationdb.org/t/tenant-management-support-in-go-bindings/3982/2 "2023-06-08T16:01:18Z")

</div>

We have another patch as well to fix a race when opening multiple clients at startup 😀

> **[Comparing apple:main...DataDog:griffin/fix-db-panic-go · apple/foundationdb](https://github.com/apple/foundationdb/compare/main...DataDog:foundationdb:griffin/fix-db-panic-go?expand=1)**
>
> FoundationDB - the open source, distributed, transactional key-value store - Comparing apple:main...DataDog:griffin/fix-db-panic-go · apple/foundationdb

---

<div class="post-metadata">

**Author:** ![griffin](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/griffin/32/1604_2.png) [@griffin](https://forums.foundationdb.org/u/griffin)\
**Post date:** [April 2, 2024, 2:05pm UTC](https://forums.foundationdb.org/t/tenant-management-support-in-go-bindings/3982/3 "2024-04-02T14:05:12Z")

</div>

Updating PR link: [Add Tenant support for Go bindings by griffin · Pull Request #10704 · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/pull/10704)
