Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 664 for mybool (0.03 sec)

  1. internal/s3select/sql/value.go

    }
    
    // ToBool returns the bool value; second return value refers to if the bool
    // conversion succeeded.
    func (v Value) ToBool() (val bool, ok bool) {
    	val, ok = v.value.(bool)
    	return val, ok
    }
    
    // ToTimestamp returns the timestamp value if present.
    func (v Value) ToTimestamp() (t time.Time, ok bool) {
    	t, ok = v.value.(time.Time)
    	return t, ok
    }
    
    // ToBytes returns the value if byte-slice.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  2. internal/s3select/sql/evaluate.go

    }
    
    const floatCmpTolerance = 0.000001
    
    func (e *In) evalInNode(r Record, lhs *Value, tableAlias string) (*Value, error) {
    	// Compare two values in terms of in-ness.
    	var cmp func(a, b Value) bool
    	cmp = func(a, b Value) bool {
    		// Convert if needed.
    		inferTypesForCmp(&a, &b)
    
    		if a.Equals(b) {
    			return true
    		}
    
    		// If elements, compare each.
    		aA, aOK := a.ToArray()
    		bA, bOK := b.ToArray()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. internal/s3select/sql/statement.go

    }
    
    func (e *SelectStatement) isPassingWhereClause(input Record) (bool, error) {
    	if e.selectAST.Where == nil {
    		return true, nil
    	}
    	value, err := e.selectAST.Where.evalNode(input, e.tableAlias)
    	if err != nil {
    		return false, err
    	}
    
    	b, ok := value.ToBool()
    	if !ok {
    		err = fmt.Errorf("WHERE expression did not return bool")
    		return false, err
    	}
    
    	return b, nil
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. internal/s3select/json/record.go

    	}
    	other.KVS = append(other.KVS, r.KVS...)
    	return other
    }
    
    // Set - sets the value for a column name.
    func (r *Record) Set(name string, value *sql.Value) (sql.Record, error) {
    	var v any
    	if b, ok := value.ToBool(); ok {
    		v = b
    	} else if f, ok := value.ToFloat(); ok {
    		v = f
    	} else if i, ok := value.ToInt(); ok {
    		v = i
    	} else if t, ok := value.ToTimestamp(); ok {
    		v = sql.FormatSQLTimestamp(t)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java

            assertFalse(robotsTxt.allows("/admin/secret.html", "MyBot"));
            assertTrue(robotsTxt.allows("/public/", "MyBot")); // Not disallowed
        }
    
        public void test_allowsWithAllowOverridingDisallow() {
            // Test that allow takes precedence over disallow
            RobotsTxt robotsTxt = new RobotsTxt();
    
            Directive directive = new Directive("MyBot");
            directive.addDisallow("/admin/");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. migrator.go

    	ColumnType() (columnType string, ok bool) // varchar(64)
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	AutoIncrement() (isAutoIncrement bool, ok bool)
    	Length() (length int64, ok bool)
    	DecimalSize() (precision int64, scale int64, ok bool)
    	Nullable() (nullable bool, ok bool)
    	Unique() (unique bool, ok bool)
    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InternetDomainName.java

       * #isPublicSuffix() public suffix}. For example, for {@code x.adwords.google.co.uk} it returns
       * {@code google.co.uk}, since {@code co.uk} is a public suffix. Similarly, for {@code
       * myblog.blogspot.com} it returns the same domain, {@code myblog.blogspot.com}, since {@code
       * blogspot.com} is a public suffix.
       *
       * <p>If {@link #isTopPrivateDomain()} is true, the current domain name instance is returned.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.9K bytes
    - Viewed (0)
  8. cmd/xl-storage-errors.go

    	"syscall"
    )
    
    // No space left on device error
    func isSysErrNoSpace(err error) bool {
    	return errors.Is(err, syscall.ENOSPC)
    }
    
    // Invalid argument, unsupported flags such as O_DIRECT
    func isSysErrInvalidArg(err error) bool {
    	return errors.Is(err, syscall.EINVAL)
    }
    
    // Input/output error
    func isSysErrIO(err error) bool {
    	return errors.Is(err, syscall.EIO)
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Mar 06 16:56:29 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. tests/test_dependency_wrapped.py

    # Sync wrapper
    
    
    @noop_wrap
    def wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    def wrapped_gen_dependency() -> Generator[bool, None, None]:
        yield True
    
    
    @noop_wrap
    async def async_wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    async def async_wrapped_gen_dependency() -> AsyncGenerator[bool, None]:
        yield True
    
    
    @app.get("/wrapped-dependency/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. fastapi/_compat/shared.py

    ) -> bool:
        try:
            return isinstance(cls, type) and issubclass(cls, class_or_tuple)  # type: ignore[arg-type]
        except TypeError:  # pragma: no cover
            if isinstance(cls, WithArgsTypes):
                return False
            raise  # pragma: no cover
    
    
    def _annotation_is_sequence(annotation: Union[type[Any], None]) -> bool:
        if lenient_issubclass(annotation, (str, bytes)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top