Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 442 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

    	}
    
    	// Append
    	languages1 := []Language{
    		{Code: "language-many2many-append-1", Name: "language-many2many-append-1"},
    	}
    	languages2 := []Language{}
    	languages3 := []Language{
    		{Code: "language-many2many-append-3-1", Name: "language-many2many-append-3-1"},
    		{Code: "language-many2many-append-3-2", Name: "language-many2many-append-3-2"},
    	}
    	DB.Create(&languages1)
    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. schema/schema.go

    				field.Schema.CreateClauses = append(field.Schema.CreateClauses, fc.CreateClauses(field)...)
    			}
    
    			if fc, ok := fieldInterface.(QueryClausesInterface); ok {
    				field.Schema.QueryClauses = append(field.Schema.QueryClauses, fc.QueryClauses(field)...)
    			}
    
    			if fc, ok := fieldInterface.(UpdateClausesInterface); ok {
    				field.Schema.UpdateClauses = append(field.Schema.UpdateClauses, fc.UpdateClauses(field)...)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  10. 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)
Back to top