Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for Dotenv (0.07 sec)

  1. tests/helper_test.go

    	if isTiDB() {
    		t.Skipf("This test case skipped, because of TiDB '%s'", reason)
    	}
    }
    
    func isTiDB() bool {
    	return os.Getenv("GORM_DIALECT") == "tidb"
    }
    
    func isMysql() bool {
    	return os.Getenv("GORM_DIALECT") == "mysql"
    }
    
    func isSqlite() bool {
    	return os.Getenv("GORM_DIALECT") == "sqlite"
    }
    
    func db(unscoped bool) *gorm.DB {
    	if unscoped {
    		return DB.Unscoped()
    	} else {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. docs/vi/docs/environment-variables.md

    Ví dụ, bạn có một file `main.py` với:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    Tham số thứ hai cho <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> là giá trị mặc định để trả về.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 07 22:17:13 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. docs/pt/docs/environment-variables.md

    Por exemplo, você poderia ter um arquivo `main.py` com:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip | Dica
    
    O segundo argumento para <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> é o valor padrão a ser retornado.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. 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 Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. docs/ja/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> の第2引数は、デフォルトで返される値を指定します。
    
    この引数を省略するとデフォルト値として`None`が返されますが、ここではデフォルト値として`"World"`を指定しています。
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Jan 27 15:39:04 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 12:17:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            final Hashtable<String, String> env = new Hashtable<>();
            putEnv(env, Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
            putEnv(env, Context.SECURITY_AUTHENTICATION, securityAuthentication);
            putEnv(env, Context.PROVIDER_URL, providerUrl);
            putEnv(env, Context.SECURITY_PRINCIPAL, principal);
            putEnv(env, Context.SECURITY_CREDENTIALS, credntials);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                    System.getProperties().entrySet().stream().forEach(e -> logger.debug("Property: {}={}", e.getKey(), e.getValue()));
                    System.getenv().entrySet().forEach(e -> logger.debug("Env: {}={}", e.getKey(), e.getValue()));
                    logger.debug("Option: {}", options);
                } catch (final Exception e) {
                    // ignore
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

         */
        public static List<Map<String, String>> getEnvItems() {
            final List<Map<String, String>> itemList = new ArrayList<>();
            for (final Map.Entry<String, String> entry : System.getenv().entrySet()) {
                itemList.add(createItem(entry.getKey(), entry.getValue()));
            }
            return itemList;
        }
    
        /**
         * Gets a list of system properties as key-value pairs.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top