- Sort Score
- Num 10 results
- Language All
Results 6421 - 6430 of 7,991 for Export (0.06 seconds)
-
schema/callbacks_test.go
package schema_test import ( "reflect" "sync" "testing" "gorm.io/gorm" "gorm.io/gorm/schema" ) type UserWithCallback struct{} func (UserWithCallback) BeforeSave(*gorm.DB) error { return nil } func (UserWithCallback) AfterCreate(*gorm.DB) error { return nil } func TestCallback(t *testing.T) { user, err := schema.Parse(&UserWithCallback{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 939 bytes - Click Count (0) -
utils/utils_windows_test.go
package utils import ( "testing" ) func TestSourceDir(t *testing.T) { cases := []struct { file string want string }{ { file: `C:/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go`, want: `C:/Users/name/go/pkg/mod/gorm.io/`, }, { file: `C:/go/work/proj/gorm/utils/utils.go`, want: `C:/go/work/proj/gorm/`, }, { file: `C:/go/work/proj/gorm_alias/utils/utils.go`,
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Nov 21 02:48:13 GMT 2022 - 715 bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/LanguageElement.java
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.docs.dsl.source.model; import java.util.List; public interface LanguageElement { String getRawCommentText(); List<String> getAnnotationTypeNames(); boolean isDeprecated(); boolean isIncubating();Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 855 bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbAuthentication.java
this.server = server; } /** * Returns the SMB server port. * @return the server port */ public int getPort() { return port; } /** * Sets the SMB server port. * @param port the server port to set */ public void setPort(final int port) { this.port = port; } /** * Returns the username for SMB authentication.Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 3.9K bytes - Click Count (0) -
build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithInnerTypes.groovy
package org.gradle.test import org.gradle.test.sub2.GroovyInterface class GroovyClassWithInnerTypes implements GroovyInterface { /** * This is an inner enum. */ enum InnerEnum {} /** * This is an inner class. */ static class InnerClass { InnerEnum enumProp /** * This is an inner inner class. */ class AnotherInner {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 609 bytes - Click Count (0) -
docs_src/background_tasks/tutorial001_py39.py
from fastapi import BackgroundTasks, FastAPI app = FastAPI() def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file: content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 519 bytes - Click Count (0) -
docs/zh/docs/advanced/response-cookies.md
所以你需要确保你响应数据类型的正确性,如:你可以使用`JSONResponse`来兼容JSON的场景。 同时,你也应当仅反馈通过`response_model`过滤过的数据。 /// ### 更多信息 /// note | 技术细节 你也可以使用`from starlette.responses import Response` 或者 `from starlette.responses import JSONResponse`。 为了方便开发者,**FastAPI** 封装了相同数据类型,如`starlette.responses` 和 `fastapi.responses`。不过大部分response对象都是直接引用自Starlette。 因为`Response`对象可以非常便捷的设置headers和cookies,所以 **FastAPI** 同时也封装了`fastapi.Response`。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.1K bytes - Click Count (0) -
docs/zh/docs/advanced/using-request-directly.md
## `Request` 文档 更多细节详见 <a href="https://www.starlette.dev/requests/" class="external-link" target="_blank">Starlette 官档 - `Request` 对象</a>。 /// note | 技术细节 您也可以使用 `from starlette.requests import Request`。 **FastAPI** 的 `from fastapi import Request` 只是为开发者提供的快捷方式,但其实它直接继承自 Starlette。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 1.9K bytes - Click Count (0) -
src/README.vendor
There are two modules, std and cmd, defined in src/go.mod and src/cmd/go.mod. When a package outside std or cmd is imported by a package inside std or cmd, the import path is interpreted as if it had a "vendor/" prefix. For example, within "crypto/tls", an import of "golang.org/x/crypto/cryptobyte" resolves to "vendor/golang.org/x/crypto/cryptobyte". When a package with the same path is imported from a package outside std or cmd, it will
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Sep 30 19:15:39 GMT 2024 - 2.4K bytes - Click Count (0) -
callbacks/raw.go
package callbacks import ( "gorm.io/gorm" ) func RawExec(db *gorm.DB) { if db.Error == nil && !db.DryRun { result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...) if err != nil { db.AddError(err) return } db.RowsAffected, _ = result.RowsAffected() if db.Statement.Result != nil { db.Statement.Result.Result = result
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 468 bytes - Click Count (0)