- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for CONSTRAINT (0.18 sec)
-
schema/constraint.go
type CheckConstraint struct { Name string Constraint string // length(phone) >= 10 *Field } func (chk *CheckConstraint) GetName() string { return chk.Name } func (chk *CheckConstraint) Build() (sql string, vars []interface{}) { return "CONSTRAINT ? CHECK (?)", []interface{}{clause.Column{Name: chk.Name}, clause.Expr{SQL: chk.Constraint}} } // ParseCheckConstraints parse schema check constraints
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Mar 18 07:33:54 GMT 2024 - 1.9K bytes - Viewed (0) -
schema/constraint_test.go
results := map[string]schema.CheckConstraint{ "name_checker": { Name: "name_checker", Constraint: "name <> 'jinzhu'", }, "chk_user_checks_name2": { Name: "chk_user_checks_name2", Constraint: "name <> 'jinzhu'", }, "chk_user_checks_name3": { Name: "chk_user_checks_name3", Constraint: "name <> 'jinzhu'", }, } checks := user.ParseCheckConstraints()
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 2.2K bytes - Viewed (0) -
migrator/migrator.go
if rel.Field.IgnoreMigration { continue } if constraint := rel.ParseConstraint(); constraint != nil && constraint.Schema == stmt.Schema && !queryTx.Migrator().HasConstraint(value, constraint.Name) { if err := execTx.Migrator().CreateConstraint(value, constraint.Name); err != nil { return err } } } }
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Apr 26 07:15:49 GMT 2024 - 29K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java
@Nonnull VersionRange parseVersionRange(@Nonnull String range); /** * Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)". * * @param constraint the constraint specification to parse, must not be {@code null} * @return the parsed version constraint, never {@code null} * @throws VersionParserException if the range specification violates the syntax rules of this scheme */
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Dec 19 19:08:55 GMT 2023 - 2.7K bytes - Viewed (0) -
schema/relationship.go
sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??" if constraint.OnDelete != "" { sql += " ON DELETE " + constraint.OnDelete } if constraint.OnUpdate != "" { sql += " ON UPDATE " + constraint.OnUpdate } foreignKeys := make([]interface{}, 0, len(constraint.ForeignKeys)) for _, field := range constraint.ForeignKeys { foreignKeys = append(foreignKeys, clause.Column{Name: field.DBName})
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 22.4K bytes - Viewed (0) -
.idea/inspectionProfiles/Gradle.xml
<constraint name="__context__" within="" contains="" /> <constraint name="TYPE" within="" contains="" /> <constraint name="ARR" nameOfExprType=".*\[\]" within="" contains="" /> <constraint name="RES" nameOfExprType="boolean" exprTypeWithinHierarchy="true" within="" contains="" /> <constraint name="ITEM" within="" contains="" /> <constraint name="TARGET" within="" contains="" />
XML - Registered: Wed Apr 24 11:36:11 GMT 2024 - Last Modified: Thu Apr 11 13:39:08 GMT 2024 - 13K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java
import org.apache.maven.api.annotations.Nullable; /** * Version constraint for dependency. Constraint is either a range ("[1,2)") or recommended version ("1.0"). * * @since 4.0.0 */ @Experimental public interface VersionConstraint { /** * Returns the range of this constraint, or {@code null} if none. * <p>
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Dec 19 19:08:55 GMT 2023 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/validation/CronExpression.java
import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = CronExpressionValidator.class) public @interface CronExpression {
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 1.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteChecker.java
throw new IllegalStateException("Could not parse current Java version", e); } if (constraint.getRange() == null) { return constraint.getVersion().compareTo(current) <= 0; } return constraint.containsVersion(current); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Dec 18 11:03:17 GMT 2023 - 2.9K bytes - Viewed (0) -
errors.go
// ErrDuplicatedKey occurs when there is a unique key constraint violation ErrDuplicatedKey = errors.New("duplicated key not allowed") // ErrForeignKeyViolated occurs when there is a foreign key constraint violation ErrForeignKeyViolated = errors.New("violates foreign key constraint") // ErrCheckConstraintViolated occurs when there is a check constraint violation ErrCheckConstraintViolated = errors.New("violates check constraint")
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Apr 26 02:53:17 GMT 2024 - 2.5K bytes - Viewed (0)