Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for personId (0.16 sec)

  1. tests/scan_test.go

    func TestScanToEmbedded(t *testing.T) {
    	person1 := Person{Name: "person 1"}
    	person2 := Person{Name: "person 2"}
    	DB.Save(&person1).Save(&person2)
    
    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    	DB.Save(&address1).Save(&address2)
    
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address1.ID)})
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address2.ID)})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat May 28 14:18:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. tests/joins_table_test.go

    		t.Fatalf("failed to delete person, got error: %v", err)
    	}
    
    	if count := DB.Unscoped().Model(&person2).Association("Addresses").Count(); count != 2 {
    		t.Errorf("person's addresses expects 2, got %v", count)
    	}
    
    	if count := DB.Model(&person2).Association("Addresses").Count(); count != 0 {
    		t.Errorf("person's addresses expects 2, got %v", count)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Sep 10 13:46:18 GMT 2020
    - 3.5K bytes
    - Viewed (0)
  3. schema/relationship_test.go

    				{"ID", "Person", "PersonID", "likes", "", true},
    				{"ID", "Thing", "ThingID", "likes", "", false},
    			},
    		},
    		Relation{
    			Name: "Dislikes", Type: schema.Many2Many, Schema: "Person", FieldSchema: "Thing",
    			JoinTable: JoinTable{Name: "dislikes", Table: "dislikes"},
    			References: []Reference{
    				{"ID", "Person", "PersonID", "dislikes", "", true},
    				{"ID", "Thing", "ThingID", "dislikes", "", false},
    			},
    		},
    	)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. licenses/github.com/shopspring/decimal/LICENSE

    Copyright (c) 2015 Spring, Inc.
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 06 22:59:30 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  5. licenses/github.com/BurntSushi/toml/COPYING

    Copyright (c) 2013 TOML authors
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 26 02:47:39 GMT 2019
    - 1.1K bytes
    - Viewed (0)
  6. licenses/github.com/alecholmes/xfccparser/LICENSE

    Copyright (c) 2020 Alec Holmes
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jul 14 16:30:33 GMT 2022
    - 1K bytes
    - Viewed (0)
  7. licenses/github.com/cespare/xxhash/v2/LICENSE.txt

    MIT License
    
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 21 18:11:13 GMT 2020
    - 1K bytes
    - Viewed (0)
  8. licenses/github.com/beorn7/perks/LICENSE

    Copyright (C) 2013 Blake Mizerany
    
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 26 02:47:39 GMT 2019
    - 1K bytes
    - Viewed (0)
  9. licenses/github.com/stretchr/testify/LICENSE

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 07 01:52:04 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  10. licenses/github.com/mattn/go-runewidth/LICENSE

    Copyright (c) 2016 Yasuhiro Matsumoto
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Dec 23 21:31:18 GMT 2019
    - 1.1K bytes
    - Viewed (0)
Back to top