- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 298 for gorm (0.06 seconds)
-
gorm.go
// Package gorm is a full-featured, developer-friendly ORM for Golang. // See https://gorm.io for documentation and community. package gorm import ( "context" "database/sql" "fmt" "reflect" "sort" "sync" "time" "gorm.io/gorm/clause" "gorm.io/gorm/logger" "gorm.io/gorm/schema" ) // for Config.cacheStore store PreparedStmtDB key const preparedStmtDBKey = "preparedStmt" // Config GORM config
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 13.1K bytes - Click Count (0) -
tests/multi_primary_keys_test.go
import ( "reflect" "sort" "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type Blog struct { ID uint `gorm:"primary_key"` Locale string `gorm:"primary_key"` Subject string Body string Tags []Tag `gorm:"many2many:blog_tags;"` SharedTags []Tag `gorm:"many2many:shared_blog_tags;ForeignKey:id;References:id"`
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:27:38 GMT 2026 - 13.3K bytes - Click Count (0) -
.github/workflows/tests.yml
services: mysql: image: ${{ matrix.dbversion }} env: MYSQL_DATABASE: gorm MYSQL_USER: gorm MYSQL_PASSWORD: gorm MYSQL_RANDOM_ROOT_PASSWORD: "yes" ports: - 9910:3306 options: >- --health-cmd "mysqladmin ping -ugorm -pgorm" --health-interval 10s --health-start-period 10s --health-timeout 5sCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Mar 23 10:05:06 GMT 2026 - 9K bytes - Click Count (0) -
utils/utils.go
// Package utils provides internal utility functions for GORM. package utils import ( "database/sql/driver" "fmt" "path/filepath" "reflect" "runtime" "strconv" "strings" "unicode" ) var gormSourceDir string func init() { _, file, _, _ := runtime.Caller(0) // compatible solution to get gorm source directory with various operating systems gormSourceDir = sourceDir(file) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 4.9K bytes - Click Count (0) -
.github/workflows/invalid_question.yml
...
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:51:39 GMT 2026 - 1.2K bytes - Click Count (0) -
callbacks/callbacks.go
// Package callbacks provides the default callback functions for GORM operations such as create, query, update, and delete. package callbacks import ( "gorm.io/gorm" ) var ( createClauses = []string{"INSERT", "VALUES", "ON CONFLICT"} queryClauses = []string{"SELECT", "FROM", "WHERE", "GROUP BY", "ORDER BY", "LIMIT", "FOR"} updateClauses = []string{"UPDATE", "SET", "WHERE"} deleteClauses = []string{"DELETE", "FROM", "WHERE"} )Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 3.4K bytes - Click Count (0) -
.github/workflows/missing_playground.yml
stale-issue-label:...
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:51:39 GMT 2026 - 1.3K bytes - Click Count (0) -
callbacks.go
package gorm import ( "context" "errors" "fmt" "reflect" "sort" "time" "gorm.io/gorm/schema" "gorm.io/gorm/utils" ) func initializeCallbacks(db *DB) *callbacks { return &callbacks{ processors: map[string]*processor{ "create": {db: db}, "query": {db: db}, "update": {db: db}, "delete": {db: db}, "row": {db: db}, "raw": {db: db}, }, } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:26:07 GMT 2026 - 8.8K bytes - Click Count (0) -
tests/main_test.go
// Package tests_test contains tests for GORM's utility functions and error handling. package tests_test import ( "testing" . "gorm.io/gorm/utils/tests" ) func TestExceptionsWithInvalidSql(t *testing.T) { if name := DB.Dialector.Name(); name == "sqlserver" { t.Skip("skip sqlserver due to it will raise data race for invalid sql") } var columns []string if DB.Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 1.5K bytes - Click Count (0) -
migrator/migrator.go
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:49:01 GMT 2026 - 29.8K bytes - Click Count (0)