- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 208 for DATABASE (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/create_test.go
} jt := JoinTable{UserID: 1, FriendID: 2} err := DB.Create(&jt).Error if err != nil { t.Errorf("No error should happen when create a record without a GORM primary key. But in the database this primary key exists and is the union of 2 or more fields\n But got: %s", err) } } func TestSelectWithCreate(t *testing.T) {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 09:55:20 GMT 2025 - 26.8K bytes - Click Count (0) -
docs/ja/docs/tutorial/sql-databases.md
続いて、この依存関係を使うコードを簡潔にするために、`Annotated` による依存関係 `SessionDep` を作成します。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *} ### 起動時にテーブルを作成 { #create-database-tables-on-startup } アプリケーションの起動時にデータベースのテーブルを作成します。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[32:37] hl[35:37] *} ここでは、アプリケーションのスタートアップイベントでテーブルを作成しています。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 18K bytes - Click Count (0) -
docs/en/docs/index.md
* Convert Python types (`str`, `int`, `float`, `bool`, `list`, etc). * `datetime` objects. * `UUID` objects. * Database models. * ...and many more. * Automatic interactive API documentation, including 2 alternative user interfaces: * Swagger UI. * ReDoc. ---
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 21.4K bytes - Click Count (0) -
README.md
* Convert Python types (`str`, `int`, `float`, `bool`, `list`, etc). * `datetime` objects. * `UUID` objects. * Database models. * ...and many more. * Automatic interactive API documentation, including 2 alternative user interfaces: * Swagger UI. * ReDoc. ---
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 24.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/sql-databases.md
接著我們建立一個 `Annotated` 的依賴 `SessionDep`,讓後續使用這個依賴的程式碼更簡潔。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *} ### 在啟動時建立資料表 { #create-database-tables-on-startup } 我們會在應用啟動時建立資料庫的資料表。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[32:37] hl[35:37] *} 這裡我們在應用的啟動事件中建立資料表。 在正式環境中,你大概會在啟動應用前使用遷移腳本來處理。🤓 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
/// 例如,这个自定义校验器会检查条目 ID 是否以 `isbn-`(用于 <abbr title="International Standard Book Number - 国际标准书号">ISBN</abbr> 书号)或 `imdb-`(用于 <abbr title="Internet Movie Database - 互联网电影数据库: 一个包含电影信息的网站">IMDB</abbr> 电影 URL 的 ID)开头: {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py hl[5,16:19,24] *} /// info | 信息 这在 Pydantic 2 或更高版本中可用。😎 ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/sql-databases.md
然后我们创建一个 `Annotated` 的依赖项 `SessionDep` 来简化其他也会用到此依赖的代码。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *} ### 在启动时创建数据库表 { #create-database-tables-on-startup } 我们会在应用程序启动时创建数据库表。 {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[32:37] hl[35:37] *} 此处,在应用程序启动事件中,我们创建了表。 在生产环境中,你可能会使用一个在启动应用程序之前运行的迁移脚本。🤓 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
tests/update_test.go
Updates(&ElementWithIgnoredField{Value: "bar", IgnoredField: 100}) var result ElementWithIgnoredField if err := DB.First(&result, elem.Id).Error; err != nil { t.Errorf("error getting an element from database: %s", err.Error()) } if result.IgnoredField != 0 { t.Errorf("element's ignored field should not be updated") } } func TestUpdateFromSubQuery(t *testing.T) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0) -
src/cmd/api/main_test.go
required = append(required, fileFeatures(file, true)...) } exception := fileFeatures(filepath.Join(testenv.GOROOT(t), "api/except.txt"), false) if exitCode == 1 { t.Errorf("API database problems found") } if !compareAPI(bw, features, required, exception) { t.Errorf("API differences found") } } // export emits the exported package features. func (w *Walker) export(pkg *apiPackage) {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Mar 02 13:20:41 GMT 2026 - 31.4K bytes - Click Count (0) -
docs_src/sql_databases/tutorial001_py310.py
class Hero(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str = Field(index=True) age: int | None = Field(default=None, index=True) secret_name: str sqlite_file_name = "database.db" sqlite_url = f"sqlite:///{sqlite_file_name}" connect_args = {"check_same_thread": False} engine = create_engine(sqlite_url, connect_args=connect_args) def create_db_and_tables():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 1.7K bytes - Click Count (0)