Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,036 for puts (0.03 sec)

  1. tests/update_test.go

    	result.Pets = append(user.Pets, result.Pets...)
    	result.Team = append(user.Team, result.Team...)
    	result.Friends = append(user.Friends, result.Friends...)
    
    	sort.Slice(result.Pets, func(i, j int) bool {
    		return result.Pets[i].ID < result.Pets[j].ID
    	})
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  2. tests/update_has_many_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}}
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Pets").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	for _, pet := range user.Pets {
    		pet.Name += "new"
    	}
    
    	if err := DB.Save(&user).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. tests/delete_test.go

    		*GetUser("delete_slice_with_associations1", Config{Account: true, Pets: 4, Toys: 1, Company: true, Manager: true, Team: 1, Languages: 1, Friends: 4}),
    		*GetUser("delete_slice_with_associations2", Config{Account: true, Pets: 3, Toys: 2, Company: true, Manager: true, Team: 2, Languages: 2, Friends: 3}),
    		*GetUser("delete_slice_with_associations3", Config{Account: true, Pets: 2, Toys: 3, Company: true, Manager: true, Team: 3, Languages: 3, Friends: 2}),
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 07:03:34 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. tests/test_response_model_data_filter.py

    async def create_user(user: UserCreate):
        return user
    
    
    @app.get("/pets/{pet_id}", response_model=PetOut)
    async def read_pet(pet_id: int):
        user = UserDB(
            email="******@****.***",
            hashed_password="secrethashed",
        )
        pet = PetDB(name="Nibbler", owner=user)
        return pet
    
    
    @app.get("/pets/", response_model=List[PetOut])
    async def read_pets():
        user = UserDB(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. .github/SUPPORT.md

    We only use our bug tracker for tracking bugs and tracking proposals going through the [Proposal Process](https://go.dev/s/proposal-process).
    
    For asking questions, see:
    
    * [The golang-nuts mailing list](https://groups.google.com/d/forum/golang-nuts)
    
    * [The Go Forum](https://forum.golangbridge.org/), a web-based forum
    
    * [Gophers Slack](https://gophers.slack.com), use the [invite app](https://invite.slack.golangbridge.org/) for access
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Mar 29 22:00:27 UTC 2023
    - 692 bytes
    - Viewed (0)
  6. utils/tests/models.go

    package tests
    
    import (
    	"database/sql"
    	"time"
    
    	"gorm.io/gorm"
    )
    
    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

    import org.lastaflute.core.message.UserMessages;
    import org.lastaflute.web.exception.Forced404NotFoundException;
    import org.lastaflute.web.ruts.multipart.MultipartFormFile;
    import org.lastaflute.web.ruts.multipart.MultipartRequestHandler;
    import org.lastaflute.web.ruts.multipart.MultipartRequestWrapper;
    import org.lastaflute.web.ruts.multipart.exception.MultipartExceededException;
    import org.lastaflute.web.util.LaServletContextUtil;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Oct 23 13:27:21 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessFwAssistantDirector.java

    import org.lastaflute.db.dbflute.classification.ListedClassificationProvider;
    import org.lastaflute.db.direction.FwDbDirection;
    import org.lastaflute.web.direction.FwWebDirection;
    import org.lastaflute.web.ruts.process.ActionRuntime;
    import org.lastaflute.web.ruts.renderer.JspHtmlRenderingProvider;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author jflute
     */
    public class FessFwAssistantDirector extends CachedFwAssistantDirector {
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

                    }
                } else {
                    sb.append("      no entries\n");
                }
    
                List<MetadataGraphEdge> outs = getExcidentEdges(v);
                if (outs != null) {
                    for (MetadataGraphEdge e : outs) {
                        sb.append("        to :  ").append(e.toString()).append('\n');
                    }
                } else {
                    sb.append("      no exit\n");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/esreq/UploadForm.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.esreq;
    
    import org.lastaflute.web.ruts.multipart.MultipartFormFile;
    import org.lastaflute.web.validation.Required;
    
    public class UploadForm {
    
        @Required
        public MultipartFormFile requestFile;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 862 bytes
    - Viewed (0)
Back to top