Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 731 for Schemat (0.06 sec)

  1. callbacks/associations.go

    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    func SaveBeforeAssociations(create bool) func(db *gorm.DB) {
    	return func(db *gorm.DB) {
    		if db.Error == nil && db.Statement.Schema != nil {
    			selectColumns, restricted := db.Statement.SelectAndOmitColumns(create, !create)
    
    			// Save Belongs To associations
    			for _, rel := range db.Statement.Schema.Relationships.BelongsTo {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. callbacks/create_test.go

    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    )
    
    var schemaCache = &sync.Map{}
    
    func TestConvertToCreateValues_DestType_Slice(t *testing.T) {
    	type user struct {
    		ID    int `gorm:"primaryKey"`
    		Name  string
    		Email string `gorm:"default:(-)"`
    		Age   int    `gorm:"default:(-)"`
    	}
    
    	s, err := schema.Parse(&user{}, schemaCache, schema.NamingStrategy{})
    	if err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 05:48:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. migrator/table_type.go

    )
    
    // TableType table type implements TableType interface
    type TableType struct {
    	SchemaValue  string
    	NameValue    string
    	TypeValue    string
    	CommentValue sql.NullString
    }
    
    // Schema returns the schema of the table.
    func (ct TableType) Schema() string {
    	return ct.SchemaValue
    }
    
    // Name returns the name of the table.
    func (ct TableType) Name() string {
    	return ct.NameValue
    }
    
    // Type returns the type of the table.
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri May 05 07:58:27 UTC 2023
    - 688 bytes
    - Viewed (0)
  4. fastapi/openapi/constants.py

    METHODS_WITH_BODY = {"GET", "HEAD", "POST", "PUT", "DELETE", "PATCH"}
    REF_PREFIX = "#/components/schemas/"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 153 bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/sql-databases.md

    {!> ../../docs_src/sql_databases/sql_app/schemas.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.9️⃣ & πŸ”›
    
    ```Python hl_lines="3  6-8  11-12  23-24  27-28"
    {!> ../../docs_src/sql_databases/sql_app_py39/schemas.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & πŸ”›
    
    ```Python hl_lines="1  4-6  9-10  21-22  25-26"
    {!> ../../docs_src/sql_databases/sql_app_py310/schemas.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  6. schema/callbacks_test.go

    	"reflect"
    	"sync"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/schema"
    )
    
    type UserWithCallback struct{}
    
    func (UserWithCallback) BeforeSave(*gorm.DB) error {
    	return nil
    }
    
    func (UserWithCallback) AfterCreate(*gorm.DB) error {
    	return nil
    }
    
    func TestCallback(t *testing.T) {
    	user, err := schema.Parse(&UserWithCallback{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 939 bytes
    - Viewed (0)
  7. manifests/charts/UPDATING-CHARTS.md

    ### Step 3. Update istioctl schema
    
    Istioctl uses a [schema](../../operator/pkg/apis/values_types.proto) to validate the values. Any changes to
    the schema must be added here, otherwise istioctl users will see errors.
    Once the schema file is updated, run:
    
    ```bash
    $ make operator-proto
    ```
    
    This will regenerate the Go structs used for schema validation.
    
    ### Step 4. Update the generated manifests
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. clause/benchmarks_test.go

    import (
    	"sync"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    func BenchmarkSelect(b *testing.B) {
    	user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy)
    
    	for i := 0; i < b.N; i++ {
    		stmt := gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. docs_src/sql_databases_peewee/sql_app/crud.py

    from . import models, schemas
    
    
    def get_user(user_id: int):
        return models.User.filter(models.User.id == user_id).first()
    
    
    def get_user_by_email(email: str):
        return models.User.filter(models.User.email == email).first()
    
    
    def get_users(skip: int = 0, limit: int = 100):
        return list(models.User.select().offset(skip).limit(limit))
    
    
    def create_user(user: schemas.UserCreate):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 843 bytes
    - Viewed (0)
  10. docs/ko/docs/features.md

    * <a href="https://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a> (OpenAPI μžμ²΄κ°€ JSON Schemaλ₯Ό 기반으둜 ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€)λ₯Ό μ‚¬μš©ν•œ μžλ™ 데이터 λͺ¨λΈ λ¬Έμ„œν™”.
    * λ‹¨μˆœνžˆ λ– μ˜¬λ €μ„œ 덧뢙인 κΈ°λŠ₯이 μ•„λ‹™λ‹ˆλ‹€. μ„Έμ‹¬ν•œ κ²€ν† λ₯Ό 거친 ν›„, μ΄λŸ¬ν•œ ν‘œμ€€μ„ 기반으둜 μ„€κ³„λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
    * μ΄λŠ” λ˜ν•œ λ‹€μ–‘ν•œ μ–Έμ–΄λ‘œ μžλ™μ μΈ **ν΄λΌμ΄μ–ΈνŠΈ μ½”λ“œ 생성**을 μ‚¬μš©ν•  수 있게 μ§€μ›ν•©λ‹ˆλ‹€.
    
    ### λ¬Έμ„œ μžλ™ν™”
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top