MCPcopy
hub / github.com/gogf/gf / Model

Method Model

database/gdb/gdb.go:46–46  ·  view source on GitHub ↗

=========================================================================== Model creation. =========================================================================== Model creates and returns a new ORM model from given schema. The parameter `table` can be more than one table names, and also alias

(tableNameOrStruct ...any)

Source from the content-addressed store, hash-verified

44 // 2. Model name with alias: Model("user", "u")
45 // Also see Core.Model.
46 Model(tableNameOrStruct ...any) *Model
47
48 // Raw creates and returns a model based on a raw sql not a table.
49 Raw(rawSql string, args ...any) *Model

Callers 15

Test_DB_InsertFunction · 0.65
Test_DB_ReplaceFunction · 0.65
Test_DB_UpdateFunction · 0.65
Test_DB_ToJsonFunction · 0.65
Test_DB_ToXmlFunction · 0.65
Test_DB_ToStringMapFunction · 0.65
Test_DB_ToIntMapFunction · 0.65
Test_DB_ToUintMapFunction · 0.65
Test_DB_ToStringRecordFunction · 0.65
Test_DB_ToIntRecordFunction · 0.65
Test_DB_ToUintRecordFunction · 0.65
Test_DB_TableFieldFunction · 0.65

Calls

no outgoing calls

Tested by 15

Test_DB_InsertFunction · 0.52
Test_DB_ReplaceFunction · 0.52
Test_DB_UpdateFunction · 0.52
Test_DB_ToJsonFunction · 0.52
Test_DB_ToXmlFunction · 0.52
Test_DB_ToStringMapFunction · 0.52
Test_DB_ToIntMapFunction · 0.52
Test_DB_ToUintMapFunction · 0.52
Test_DB_ToStringRecordFunction · 0.52
Test_DB_ToIntRecordFunction · 0.52
Test_DB_ToUintRecordFunction · 0.52
Test_DB_TableFieldFunction · 0.52