Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 62 for USER_ID (0.05 seconds)

  1. tests/chainable_api_test.go

    			t.Fatalf("LIMIT/Offset values unexpected: %v", cl.Expression)
    		}
    	}
    
    	// Joins
    	tx = tx.Joins("JOIN accounts ON accounts.user_id = users.id")
    	if len(tx.Statement.Joins) == 0 {
    		t.Fatalf("Joins expected")
    	}
    	if tx.Statement.Joins[0].Name != "JOIN accounts ON accounts.user_id = users.id" {
    		t.Fatalf("Join name mismatch: %v", tx.Statement.Joins[0].Name)
    	}
    
    	// Preload
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Jan 31 08:39:40 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  2. docs/uk/docs/tutorial/dependencies/index.md

    Наприклад, припустімо, у вас є 4 кінцеві точки API (*операції шляху*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    тоді ви могли б додати різні вимоги до дозволів для кожної з них лише за допомогою залежностей і субзалежностей:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/dependencies/index.md

    Например, у вас есть 4 API-эндпоинта (*операции пути*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    тогда вы можете добавить разные требования к правам для каждого из них только с помощью зависимостей и подзависимостей:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 15.4K bytes
    - Click Count (1)
  4. docs/uk/docs/features.md

    Ви пишете стандартний Python з типами:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Оголосіть змінну як str
    # та отримайте підтримку редактора всередині функції
    def main(user_id: str):
        return user_id
    
    
    # Модель Pydantic
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Далі це можна використовувати так:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/dependencies/index.md

    Por ejemplo, digamos que tienes 4 endpoints de API (*path operations*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    entonces podrías agregar diferentes requisitos de permiso para cada uno de ellos solo con dependencias y sub-dependencias:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. docs/fr/docs/features.md

    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Déclarez une variable comme étant une str
    # et profitez de l'aide de l'éditeur dans cette fonction
    def main(user_id: str):
        return user_id
    
    
    # Un modèle Pydantic
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Qui peuvent ensuite être utilisés comme ceci :
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  7. docs/ru/docs/features.md

    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Объявляем параметр как `str`
    # и получаем поддержку редактора кода внутри функции
    def main(user_id: str):
        return user_id
    
    
    # Модель Pydantic
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Это можно использовать так:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/dependencies/index.md

    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    你可以仅通过依赖项及其子依赖项为它们添加不同的权限要求:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    active_user(["active_user"])
    admin_user(["admin_user"])
    paying_user(["paying_user"])
    
    public["/items/public/"]
    private["/items/private/"]
    activate_user["/users/{user_id}/activate"]
    pro_items["/items/pro/"]
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  9. tests/distinct_test.go

    	}
    
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    	r := dryDB.Distinct("u.id, u.*").Table("user_speaks as s").Joins("inner join users as u on u.id = s.user_id").Where("s.language_code ='US' or s.language_code ='ES'").Find(&User{})
    	if !regexp.MustCompile(`SELECT DISTINCT u\.id, u\.\* FROM user_speaks as s inner join users as u`).MatchString(r.Statement.SQL.String()) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/dependencies/index.md

    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    那麼你就能只透過依賴與子依賴,為每個端點加入不同的權限需求:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    active_user(["active_user"])
    admin_user(["admin_user"])
    paying_user(["paying_user"])
    
    public["/items/public/"]
    private["/items/private/"]
    activate_user["/users/{user_id}/activate"]
    pro_items["/items/pro/"]
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.9K bytes
    - Click Count (0)
Back to Top