Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,053 for gorm (0.03 sec)

  1. schema/index.go

    				if field.Name == name {
    					return index
    				}
    			}
    		}
    	}
    
    	return nil
    }
    
    func parseFieldIndexes(field *Field) (indexes []Index, err error) {
    	for _, value := range strings.Split(field.Tag.Get("gorm"), ";") {
    		if value != "" {
    			v := strings.Split(value, ":")
    			k := strings.TrimSpace(strings.ToUpper(v[0]))
    			if k == "INDEX" || k == "UNIQUEINDEX" {
    				var (
    					name       string
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed May 21 02:35:56 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. logger/sql.go

    package logger
    
    import (
    	"database/sql/driver"
    	"fmt"
    	"reflect"
    	"regexp"
    	"strconv"
    	"strings"
    	"time"
    	"unicode"
    
    	"gorm.io/gorm/utils"
    )
    
    const (
    	tmFmtWithMS = "2006-01-02 15:04:05.999"
    	tmFmtZero   = "0000-00-00 00:00:00"
    	nullStr     = "NULL"
    )
    
    func isPrintable(s string) bool {
    	for _, r := range s {
    		if !unicode.IsPrint(r) {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. logger/logger.go

    package logger
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"time"
    
    	"gorm.io/gorm/utils"
    )
    
    // ErrRecordNotFound record not found error
    var ErrRecordNotFound = errors.New("record not found")
    
    // Colors
    const (
    	Reset       = "\033[0m"
    	Red         = "\033[31m"
    	Green       = "\033[32m"
    	Yellow      = "\033[33m"
    	Blue        = "\033[34m"
    	Magenta     = "\033[35m"
    	Cyan        = "\033[36m"
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Jan 12 10:19:28 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. tests/lru_test.go

    package tests_test
    
    import (
    	"crypto/rand"
    	"fmt"
    	"math"
    	"math/big"
    	"reflect"
    	"sync"
    	"testing"
    	"time"
    
    	"gorm.io/gorm/internal/lru"
    )
    
    func TestLRU_Add_ExistingKey_UpdatesValueAndExpiresAt(t *testing.T) {
    	lru := lru.NewLRU[string, int](10, nil, time.Hour)
    	lru.Add("key1", 1)
    	lru.Add("key1", 2)
    
    	if value, ok := lru.Get("key1"); !ok || value != 2 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Sep 08 09:19:22 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. fess-crawler/src/test/resources/ajax/form.html

    FORM...
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 5 bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/request-form-models.md

    Solo necesitas declarar un **modelo de Pydantic** con los campos que quieres recibir como **campos de formulario**, y luego declarar el parámetro como `Form`:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    **FastAPI** **extraerá** los datos de **cada campo** de los **form data** en el request y te dará el modelo de Pydantic que definiste.
    
    ## Revisa la Documentación { #check-the-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/request-form-models.md

    Вы можете проверить это в интерфейсе документации по адресу `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Запрет дополнительных полей формы { #forbid-extra-form-fields }
    
    В некоторых случаях (не особо часто встречающихся) вам может понадобиться **ограничить** поля формы только теми, которые объявлены в Pydantic-модели. И **запретить** любые **дополнительные** поля.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/request-form-models.md

    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Forbid Extra Form Fields { #forbid-extra-form-fields }
    
    In some special use cases (probably not very common), you might want to **restrict** the form fields to only those declared in the Pydantic model. And **forbid** any **extra** fields.
    
    /// note
    
    This is supported since FastAPI version `0.114.0`. 🤓
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/request-form-models.md

    ## Die Dokumentation testen { #check-the-docs }
    
    Sie können dies in der Dokumentations-UI unter `/docs` testen:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Zusätzliche Formularfelder verbieten { #forbid-extra-form-fields }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/request-form-models.md

    ## Confira os Documentos { #check-the-docs }
    
    Você pode verificar na UI de documentação em `/docs`:
    
    <div class="screenshot">
    <img src="/img/tutorial/request-form-models/image01.png">
    </div>
    
    ## Proibir Campos Extras de Formulários { #forbid-extra-form-fields }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top