Add first google auth

This commit is contained in:
Achim Rohn
2025-09-17 14:58:13 +02:00
parent ad363251e4
commit 2a3506d21b
20 changed files with 2614 additions and 12 deletions
+4 -1
View File
@@ -12,6 +12,8 @@ import (
// Tx is a transactional client that is created by calling Client.Tx().
type Tx struct {
config
// GoogleAuth is the client for interacting with the GoogleAuth builders.
GoogleAuth *GoogleAuthClient
// User is the client for interacting with the User builders.
User *UserClient
@@ -145,6 +147,7 @@ func (tx *Tx) Client() *Client {
}
func (tx *Tx) init() {
tx.GoogleAuth = NewGoogleAuthClient(tx.config)
tx.User = NewUserClient(tx.config)
}
@@ -155,7 +158,7 @@ func (tx *Tx) init() {
// of them in order to commit or rollback the transaction.
//
// If a closed transaction is embedded in one of the generated entities, and the entity
// applies a query, for example: User.QueryXXX(), the query will be executed
// applies a query, for example: GoogleAuth.QueryXXX(), the query will be executed
// through the driver which created this transaction.
//
// Note that txDriver is not goroutine safe.