Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,324 for convert (0.16 sec)

  1. internal/s3select/sql/value.go

    				a.setInt(iA)
    			} else if fA, ok := a.bytesToFloat(); ok {
    				a.setFloat(fA)
    			} else {
    				return fmt.Errorf("Could not convert %s to a number", a.String())
    			}
    
    		case bool:
    			if bA, ok := a.bytesToBool(); ok {
    				a.setBool(bA)
    			} else {
    				return fmt.Errorf("Could not convert %s to a boolean", a.String())
    			}
    
    		default:
    			return errCmpMismatchedTypes
    		}
    		return nil
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    	}
    
    	return &policyInfo, nil
    }
    
    // BucketAccessPolicyToPolicy - converts minio-go/policy.BucketAccessPolicy to policy.BucketPolicy.
    func BucketAccessPolicyToPolicy(policyInfo *miniogopolicy.BucketAccessPolicy) (*policy.BucketPolicy, error) {
    	data, err := json.Marshal(policyInfo)
    	if err != nil {
    		// This should not happen because policyInfo is valid to convert to JSON data.
    		return nil, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/encoder.md

    # JSON Compatible Encoder
    
    There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc).
    
    For example, if you need to store it in a database.
    
    For that, **FastAPI** provides a `jsonable_encoder()` function.
    
    ## Using the `jsonable_encoder`
    
    Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/BigIntegerConversionUtilTest.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class BigIntegerConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 960 bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

    import org.codelibs.core.beans.factory.ParameterizedClassDescFactory;
    import org.codelibs.core.convert.BooleanConversionUtil;
    import org.codelibs.core.convert.CalendarConversionUtil;
    import org.codelibs.core.convert.DateConversionUtil;
    import org.codelibs.core.convert.NumberConversionUtil;
    import org.codelibs.core.convert.TimeConversionUtil;
    import org.codelibs.core.convert.TimestampConversionUtil;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/general.md

    ## Convert any Data to JSON-compatible
    
    To convert any data to JSON-compatible, read the docs for [Tutorial - JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    ## OpenAPI Metadata - Docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import static org.codelibs.core.convert.TimeConversionUtil.toCalendar;
    import static org.codelibs.core.convert.TimeConversionUtil.toDate;
    import static org.codelibs.core.convert.TimeConversionUtil.toPlainPattern;
    import static org.codelibs.core.convert.TimeConversionUtil.toSqlTime;
    import static org.hamcrest.CoreMatchers.is;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. .teamcity/.mvn/wrapper/maven-wrapper.jar

    andLineConverter.class package org.apache.maven.wrapper.cli; public abstract interface CommandLineConverter { public abstract Object convert(Iterable) throws CommandLineArgumentE; public abstract Object convert(Iterable, Object) throws CommandLineArgumentE; public abstract Object convert(ParsedCommandLine) throws CommandLineArgumentE; public abstract Object convert(ParsedCommandLine, Object) throws CommandLineArgumentE; public abstract void configure(CommandLineParser); } org/apache/maven/wrappe...
    Archive
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 49.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt

                            else -> errorWithAttachment("Can't convert ${value::class} to the Analysis API") {
                                withEntry("value", value) { value.toString() }
                            }
                        },
                        builder.token
                    )
                )
                else -> errorWithAttachment("Can't convert ${returnsEffect::class} to the Analysis API")  {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Jul 26 14:29:20 GMT 2023
    - 7K bytes
    - Viewed (0)
  10. cmd/warm-backend-azure.go

    }
    
    func (az *warmBackendAzure) Remove(ctx context.Context, object string, rv remoteVersionID) error {
    	blob := az.serviceURL.NewContainerURL(az.Bucket).NewBlobURL(az.getDest(object))
    	_, err := blob.Delete(ctx, azblob.DeleteSnapshotsOptionNone, azblob.BlobAccessConditions{})
    	return azureToObjectError(err, az.Bucket, object)
    }
    
    func (az *warmBackendAzure) InUse(ctx context.Context) (bool, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 05 16:44:08 GMT 2024
    - 7.8K bytes
    - Viewed (1)
Back to top