Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for 18 (0.2 sec)

  1. clause/where_test.go

    			}},
    			"SELECT * FROM `users` WHERE `age` = ? OR `name` <> ?",
    			[]interface{}{18, "jinzhu"},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. tests/default_value_test.go

    		Name    string    `gorm:"notNull;default:foo"`
    		Name2   string    `gorm:"size:233;not null;default:'foo'"`
    		Name3   string    `gorm:"size:233;notNull;default:''"`
    		Age     int       `gorm:"default:18"`
    		Created time.Time `gorm:"default:2000-01-02"`
    		Enabled bool      `gorm:"default:true"`
    	}
    
    	DB.Migrator().DropTable(&Harumph{})
    
    	if err := DB.AutoMigrate(&Harumph{}); err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. callbacks/helper_test.go

    				Values:  [][]interface{}{{"my name"}},
    			},
    		},
    		{
    			name: "Test convert int value",
    			input: map[string]interface{}{
    				"age": 18,
    			},
    			expect: clause.Values{
    				Columns: []clause.Column{{Name: "age"}},
    				Values:  [][]interface{}{{18}},
    			},
    		},
    		{
    			name: "Test convert float value",
    			input: map[string]interface{}{
    				"score": 99.5,
    			},
    			expect: clause.Values{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 05 02:22:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/extra-data-types.md

    === "Python 3.10+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-20"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/extra-data-types.md

    === "Python 3.10+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-20"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/extra-data-types.md

        ```
    
    注意,函数内的参数有原生的数据类型,你可以,例如,执行正常的日期操作,如:
    
    === "Python 3.10+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-20"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/extra-data-types.md

    === "Python 3.10+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="18-19"
        {!> ../../../docs_src/extra_data_types/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-20"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/body.md

    ```Python hl_lines="17-18"
    {!../../../docs_src/body/tutorial003.py!}
    ```
    
    ## Тело запроса + параметры пути + параметры запроса
    
    Вы также можете одновременно объявить параметры для **пути**, **запроса** и **тела запроса**.
    
    **FastAPI** распознает каждый из них и возьмет данные из правильного источника.
    
    ```Python hl_lines="18"
    {!../../../docs_src/body/tutorial004.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  9. callbacks/create_test.go

    	if err != nil {
    		t.Errorf("parse schema error: %v, is not expected", err)
    		return
    	}
    	dest := []*user{
    		{
    			ID:    1,
    			Name:  "alice",
    			Email: "email",
    			Age:   18,
    		},
    		{
    			ID:    2,
    			Name:  "bob",
    			Email: "email",
    			Age:   19,
    		},
    	}
    	stmt := &gorm.Statement{
    		DB: &gorm.DB{
    			Config: &gorm.Config{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 05:48:42 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/body.md

    ```Python hl_lines="17-18"
    {!../../../docs_src/body/tutorial003.py!}
    ```
    
    ## Corpo da requisição + parâmetros de rota + parâmetros de consulta
    
    Você também pode declarar parâmetros de **corpo**, **rota** e **consulta**, ao mesmo tempo.
    
    O **FastAPI** irá reconhecer cada um deles e retirar a informação do local correto.
    
    ```Python hl_lines="18"
    {!../../../docs_src/body/tutorial004.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top