- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 85 for returningX (0.18 sec)
-
clause/returning.go
package clause type Returning struct { Columns []Column } // Name where clause name func (returning Returning) Name() string { return "RETURNING" } // Build build where clause func (returning Returning) Build(builder Builder) { if len(returning.Columns) > 0 { for idx, column := range returning.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) } } else {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Oct 27 23:56:55 UTC 2021 - 681 bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/NullabilityChangesTest.kt
) { assertHasErrors( "Method com.example.Source.foo(): From non-null returning to null returning breaking change.", "Method com.example.Source.getSomeVal(): From non-null returning to null returning breaking change.", "Method com.example.Source.getSomeVar(): From non-null returning to null returning breaking change." ) assertHasWarnings(
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 9.1K bytes - Viewed (0) -
clause/returning_test.go
[]clause.Column{clause.PrimaryColumn}, }}, "SELECT * FROM `users` RETURNING `users`.`id`", nil, }, { []clause.Interface{clause.Select{}, clause.From{}, clause.Returning{ []clause.Column{clause.PrimaryColumn}, }, clause.Returning{ []clause.Column{{Name: "name"}, {Name: "age"}}, }}, "SELECT * FROM `users` RETURNING `users`.`id`,`name`,`age`", nil, }, }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Jun 02 01:18:01 UTC 2020 - 845 bytes - Viewed (0) -
callbacks/helper.go
return } func hasReturning(tx *gorm.DB, supportReturning bool) (bool, gorm.ScanMode) { if supportReturning { if c, ok := tx.Statement.Clauses["RETURNING"]; ok { returning, _ := c.Expression.(clause.Returning) if len(returning.Columns) == 0 || (len(returning.Columns) == 1 && returning.Columns[0].Name == "*") { return true, 0 } return true, gorm.ScanUpdate } } return false, 0 }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Apr 14 12:32:57 UTC 2022 - 3.7K bytes - Viewed (0) -
tests/delete_test.go
} } // only sqlite, postgres, sqlserver support returning func TestSoftDeleteReturning(t *testing.T) { if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" { return } users := []*User{ GetUser("delete-returning-1", Config{}), GetUser("delete-returning-2", Config{}), GetUser("delete-returning-3", Config{}), } DB.Create(&users)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Oct 10 07:03:34 UTC 2023 - 9.4K bytes - Viewed (0) -
utils/tests/dummy_dialecter.go
callbacks.RegisterDefaultCallbacks(db, &callbacks.Config{ CreateClauses: []string{"INSERT", "VALUES", "ON CONFLICT", "RETURNING"}, UpdateClauses: []string{"UPDATE", "SET", "WHERE", "RETURNING"}, DeleteClauses: []string{"DELETE", "FROM", "WHERE", "RETURNING"}, LastInsertIDReversed: true, }) return nil } func (DummyDialector) DefaultValueOf(field *schema.Field) clause.Expression {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 06 06:03:31 UTC 2023 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
# Middleware You can add middleware to **FastAPI** applications. A "middleware" is a function that works with every **request** before it is processed by any specific *path operation*. And also with every **response** before returning it. * It takes each **request** that comes to your application. * It can then do something to that **request** or run any needed code.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/en/docs/advanced/response-cookies.md
You can also declare the `Response` parameter in dependencies, and set cookies (and headers) in them. ## Return a `Response` directly You can also create cookies when returning a `Response` directly in your code. To do that, you can create a response as described in [Return a Response Directly](response-directly.md){.internal-link target=_blank}. Then set Cookies in it, and then return it:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
assertFalse(task.isDone()); task.run(); assertTrue(task.isDone()); assertFalse(task.isCancelled()); assertEquals(2, getDone(task).intValue()); } public void testCancelled() throws Exception { TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2)); assertFalse(task.isDone()); task.cancel(false);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
super.setUp(); timeLimiter = new FakeTimeLimiter(); } public void testCallWithTimeout_propagatesReturnValue() throws Exception { String result = timeLimiter.callWithTimeout(Callables.returning(RETURN_VALUE), DELAY_MS, MILLISECONDS); assertThat(result).isEqualTo(RETURN_VALUE); } public void testCallWithTimeout_wrapsCheckedException() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4K bytes - Viewed (0)