Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 437 for Append (0.2 sec)

  1. internal/ioutil/append-file_nix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. internal/ioutil/append-file_windows.go

    package ioutil
    
    import (
    	"io"
    	"os"
    
    	"github.com/minio/minio/internal/lock"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	appendFile, err := lock.Open(dst, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := lock.Open(src, os.O_RDONLY, 0o666)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  3. tests/associations_many2many_test.go

    	languages := []Language{
    		{Code: "language-many2many-append-1-1", Name: "language-many2many-append-1-1"},
    		{Code: "language-many2many-append-2-1", Name: "language-many2many-append-2-1"},
    	}
    	DB.Create(&languages)
    
    	if err := DB.Model(&user2).Association("Languages").Append(&languages); err != nil {
    		t.Fatalf("Error happened when append language, got %v", err)
    	}
    
    	user.Languages = append(user.Languages, languages...)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  4. schema/relationship.go

    		case HasOne:
    			schema.Relationships.HasOne = append(schema.Relationships.HasOne, relation)
    		case HasMany:
    			schema.Relationships.HasMany = append(schema.Relationships.HasMany, relation)
    		case BelongsTo:
    			schema.Relationships.BelongsTo = append(schema.Relationships.BelongsTo, relation)
    		case Many2Many:
    			schema.Relationships.Many2Many = append(schema.Relationships.Many2Many, relation)
    		}
    	}
    
    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)
  5. cmd/object-api-datatypes_gen.go

    	// map header, size 5
    	// string "Name"
    	o = append(o, 0x85, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
    	o = msgp.AppendString(o, z.Name)
    	// string "Created"
    	o = append(o, 0xa7, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64)
    	o = msgp.AppendTime(o, z.Created)
    	// string "Deleted"
    	o = append(o, 0xa7, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64)
    	o = msgp.AppendTime(o, z.Deleted)
    	// string "Versioning"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 69.8K bytes
    - Viewed (0)
  6. cmd/batch-handlers_gen.go

    	// string "v"
    	o = append(o, 0xde, 0x0, 0x10, 0xa1, 0x76)
    	o = msgp.AppendInt(o, z.Version)
    	// string "jid"
    	o = append(o, 0xa3, 0x6a, 0x69, 0x64)
    	o = msgp.AppendString(o, z.JobID)
    	// string "jt"
    	o = append(o, 0xa2, 0x6a, 0x74)
    	o = msgp.AppendString(o, z.JobType)
    	// string "st"
    	o = append(o, 0xa2, 0x73, 0x74)
    	o = msgp.AppendTime(o, z.StartTime)
    	// string "lu"
    	o = append(o, 0xa2, 0x6c, 0x75)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 07 18:58:22 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. association.go

    					if ref.OwnPrimaryKey {
    						primaryFields = append(primaryFields, ref.PrimaryKey)
    						joinPrimaryKeys = append(joinPrimaryKeys, ref.ForeignKey.DBName)
    					} else {
    						relPrimaryFields = append(relPrimaryFields, ref.PrimaryKey)
    						joinRelPrimaryKeys = append(joinRelPrimaryKeys, ref.ForeignKey.DBName)
    					}
    				} else {
    					conds = append(conds, clause.Eq{Column: ref.ForeignKey.DBName, Value: ref.PrimaryValue})
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  8. cmd/bucket-replication-utils_gen.go

    	o = append(o, 0xa3, 0x72, 0x73, 0x74)
    	o = msgp.AppendInt(o, int(z.ResyncStatus))
    	// string "fs"
    	o = append(o, 0xa2, 0x66, 0x73)
    	o = msgp.AppendInt64(o, z.FailedSize)
    	// string "frc"
    	o = append(o, 0xa3, 0x66, 0x72, 0x63)
    	o = msgp.AppendInt64(o, z.FailedCount)
    	// string "rs"
    	o = append(o, 0xa2, 0x72, 0x73)
    	o = msgp.AppendInt64(o, z.ReplicatedSize)
    	// string "rrc"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 61.1K bytes
    - Viewed (0)
  9. cmd/batch-expire_gen.go

    		return
    	}
    	// string "Type"
    	o = append(o, 0xa4, 0x54, 0x79, 0x70, 0x65)
    	o = msgp.AppendString(o, z.Type)
    	// string "Name"
    	o = append(o, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
    	o = msgp.AppendString(o, z.Name)
    	// string "Purge"
    	o = append(o, 0xa5, 0x50, 0x75, 0x72, 0x67, 0x65)
    	// map header, size 1
    	// string "RetainVersions"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  10. cmd/last-minute_gen.go

    		// string "Totals"
    		o = append(o, 0x82, 0xa6, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x73)
    		o = msgp.AppendArrayHeader(o, uint32(60))
    		for za0002 := range z[za0001].Totals {
    			// map header, size 3
    			// string "Total"
    			o = append(o, 0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    			o = msgp.AppendInt64(o, z[za0001].Totals[za0002].Total)
    			// string "Size"
    			o = append(o, 0xa4, 0x53, 0x69, 0x7a, 0x65)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jul 05 21:45:49 GMT 2022
    - 17.2K bytes
    - Viewed (0)
Back to top