Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for SQL (0.01 sec)

  1. docs/pt/docs/tutorial/sql-databases.md

    /// tip | Dica
    
    Vocรช pode usar qualquer outra biblioteca de banco de dados SQL ou NoSQL que quiser (em alguns casos chamadas de <abbr title="Object Relational Mapper, um termo sofisticado para uma biblioteca onde algumas classes representam tabelas SQL e instรขncias representam linhas nessas tabelas">"ORMs"</abbr>), o FastAPI nรฃo obriga vocรช a usar nada. ๐Ÿ˜Ž
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/sql-databases.md

    * `table=True`๋Š” SQLModel์— ์ด ๋ชจ๋ธ์ด *ํ…Œ์ด๋ธ” ๋ชจ๋ธ*์ด๋ฉฐ, ๋‹จ์ˆœํ•œ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์ด ์•„๋‹ˆ๋ผ SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ **ํ…Œ์ด๋ธ”**์„ ๋‚˜ํƒ€๋‚ธ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๋ ค์ค๋‹ˆ๋‹ค. (๋‹ค๋ฅธ ์ผ๋ฐ˜์ ์ธ Pydantic ํด๋ž˜์Šค์ฒ˜๋Ÿผ) ๋‹จ์ˆœํ•œ *๋ฐ์ดํ„ฐ ๋ชจ๋ธ*์ด ์•„๋‹™๋‹ˆ๋‹ค.
    
    * `Field(primary_key=True)`๋Š” SQLModel์— `id`๊ฐ€ SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ **๊ธฐ๋ณธ ํ‚ค**์ž„์„ ์•Œ๋ ค์ค๋‹ˆ๋‹ค (SQL ๊ธฐ๋ณธ ํ‚ค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ SQLModel ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”).
    
        `int | None` ์œ ํ˜•์œผ๋กœ ์„ค์ •ํ•˜๋ฉด, SQLModel์€ ํ•ด๋‹น ์—ด์ด SQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ `INTEGER` ์œ ํ˜•์ด๋ฉฐ `NULLABLE` ๊ฐ’์ด์–ด์•ผ ํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 24 16:14:29 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/sql-databases.md

    /// tip | Consejo
    
    Puedes usar cualquier otro paquete de bases de datos SQL o NoSQL que quieras (en algunos casos llamadas <abbr title="Object Relational Mapper, un tรฉrmino elegante para un paquete donde algunas clases representan tablas SQL y las instances representan filas en esas tablas">"ORMs"</abbr>), FastAPI no te obliga a usar nada. ๐Ÿ˜Ž
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/sql-databases.md

    /// tip | ะŸะพะดัะบะฐะทะบะฐ
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 17 21:20:20 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

    * `Field(primary_key=True)` tells SQLModel that the `id` is the **primary key** in the SQL database (you can learn more about SQL primary keys in the SQLModel docs).
    
        By having the type as `int | None`, SQLModel will know that this column should be an `INTEGER` in the SQL database and that it should be `NULLABLE`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. tests/sql_builder_test.go

    	sql = dryRunDB.Or("a = ? or b = ?", "a", "b").Unscoped().Find(&User{}).Statement.SQL.String()
    	if !regexp.MustCompile(`WHERE a = .+ or b = .+$`).MatchString(sql) {
    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    
    	sql = dryRunDB.Not("a = ? or b = ?", "a", "b").Unscoped().Find(&User{}).Statement.SQL.String()
    	if !regexp.MustCompile(`WHERE NOT \(a = .+ or b = .+\)$`).MatchString(sql) {
    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. tests/table_test.go

    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM user as u WHERE .u.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. tests/query_test.go

    		t.Fatalf("SQL should include selected names, but got %v", result.Statement.SQL.String())
    	}
    
    	result = dryDB.Model(&User{}).Find(&User{}, user.ID)
    	if regexp.MustCompile("SELECT \\* FROM .*users").MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("SQL should not include a * wildcard, but got %v", result.Statement.SQL.String())
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
  9. tests/connpool_test.go

    //		 return c.db.BeginTx(ctx, opts)
    //	}
    //
    // You should use BeginTx returned gorm.Tx which could wrap *sql.Tx then you can record all queries.
    func (c *wrapperConnPool) BeginTx(ctx context.Context, opts *sql.TxOptions) (gorm.ConnPool, error) {
    	tx, err := c.db.BeginTx(ctx, opts)
    	if err != nil {
    		return nil, err
    	}
    	return &wrapperTx{Tx: tx, conn: c}, nil
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. generics.go

    			subdb.Statement.SQL.Reset()
    			subdb.Statement.Vars = stmt.Vars
    			if strings.Contains(sql, "@") {
    				clause.NamedExpr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    			} else {
    				clause.Expr{SQL: sql, Vars: vars}.Build(subdb.Statement)
    			}
    		} else {
    			subdb.Statement.Vars = append(stmt.Vars, subdb.Statement.Vars...)
    			subdb.callbacks.Query().Execute(subdb)
    		}
    
    		builder.WriteString(subdb.Statement.SQL.String())
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top