Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for Dotenv (0.06 sec)

  1. tests/connpool_test.go

    	c.got = append(c.got, query)
    	return c.db.QueryRowContext(ctx, query, args...)
    }
    
    func TestConnPoolWrapper(t *testing.T) {
    	dialect := os.Getenv("GORM_DIALECT")
    	if dialect != "mysql" {
    		t.SkipNow()
    	}
    
    	dbDSN := os.Getenv("GORM_DSN")
    	if dbDSN == "" {
    		dbDSN = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    	}
    	nativeDB, err := sql.Open("mysql", dbDSN)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CircleCIDetector.java

        public static final String NAME = "CircleCI";
    
        private static final String CIRCLECI = "CIRCLECI";
    
        @Override
        public Optional<CIInfo> detectCI() {
            String ciEnv = System.getenv(CIRCLECI);
            if ("true".equals(ciEnv)) {
                return Optional.of(new CIInfo() {
                    @Override
                    public String name() {
                        return NAME;
                    }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/JenkinsCIDetector.java

        public static final String NAME = "Jenkins";
    
        private static final String WORKSPACE = "WORKSPACE";
    
        @Override
        public Optional<CIInfo> detectCI() {
            String workspace = System.getenv(WORKSPACE);
            if (workspace != null && !workspace.trim().isEmpty()) {
                return Optional.of(new CIInfo() {
                    @Override
                    public String name() {
                        return NAME;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_settings/test_app01.py

    
    @pytest.fixture(name="client")
    def get_test_client(mod_name: str, monkeypatch: MonkeyPatch) -> TestClient:
        if mod_name in sys.modules:
            del sys.modules[mod_name]
        monkeypatch.setenv("ADMIN_EMAIL", "******@****.***")
        main_mod = importlib.import_module(mod_name)
        return TestClient(main_mod.app)
    
    
    def test_settings_validation_error(mod_name: str, monkeypatch: MonkeyPatch):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. internal/init/init_darwin_amd64.go

    package init
    
    import (
    	"os"
    
    	"github.com/klauspost/cpuid/v2"
    )
    
    func init() {
    	// All MinIO operations must be under UTC.
    	os.Setenv("TZ", "UTC")
    
    	// Temporary workaround for
    	// https://github.com/golang/go/issues/49233
    	// Keep until upstream has been fixed.
    	cpuid.CPU.Disable(cpuid.AVX512F, cpuid.AVX512BW, cpuid.AVX512CD, cpuid.AVX512DQ,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Nov 04 23:44:38 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  6. docs/ko/docs/environment-variables.md

    예를 들어 다음과 같은 `main.py` 파일이 있다고 합시다:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip | 팁
    
    <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 의 두 번째 인자는 반환할 기본값입니다.
    
    여기서는 `"World"`를 넣었기에 기본값으로써 사용됩니다. 넣지 않으면 `None` 이 기본값으로 사용됩니다.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/ResourceUtil.java

         *
         * @return the application type string, or empty string if not set
         */
        public static String getAppType() {
            final String appType = System.getenv(FESS_APP_TYPE);
            if (StringUtil.isNotBlank(appType)) {
                return appType;
            }
            return StringUtil.EMPTY;
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/GenericCIDetector.java

        public static final String NAME = "Generic";
    
        private static final String CI = "CI";
    
        @Override
        public Optional<CIInfo> detectCI() {
            String ciEnv = System.getenv(CI);
            if (ciEnv != null && !"false".equals(ciEnv)) {
                return Optional.of(new CIInfo() {
                    @Override
                    public String name() {
                        return NAME;
                    }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  9. docs/zh-hant/docs/environment-variables.md

    例如,你可以建立一個名為 `main.py` 的檔案,其中包含以下內容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    第二個參數是 <a href="https://docs.python.org/zh-tw/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的預設回傳值。
    
    如果沒有提供,預設值為 `None`,這裡我們提供 `"World"` 作為預設值。
    
    ///
    
    然後你可以呼叫這個 Python 程式:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 12:17:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. docs/zh/docs/environment-variables.md

    例如,你可以创建一个名为 `main.py` 的文件,其中包含以下内容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    第二个参数是 <a href="https://docs.python.org/zh-cn/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的默认返回值。
    
    如果没有提供,默认值为 `None`,这里我们提供 `"World"` 作为默认值。
    
    ///
    
    然后你可以调用这个 Python 程序:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 12:17:15 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top