Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for QuoteTo (0.13 sec)

  1. statement.go

    // WriteQuoted write quoted value
    func (stmt *Statement) WriteQuoted(value interface{}) {
    	stmt.QuoteTo(&stmt.SQL, value)
    }
    
    // QuoteTo write quoted value to writer
    func (stmt *Statement) QuoteTo(writer clause.Writer, field interface{}) {
    	write := func(raw bool, str string) {
    		if raw {
    			writer.WriteString(str)
    		} else {
    			stmt.DB.Dialector.QuoteTo(writer, str)
    		}
    	}
    
    	switch v := field.(type) {
    	case clause.Table:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  2. migrator/migrator.go

    		return gorm.ErrSubQueryRequired
    	}
    
    	sql := new(strings.Builder)
    	sql.WriteString("CREATE ")
    	if option.Replace {
    		sql.WriteString("OR REPLACE ")
    	}
    	sql.WriteString("VIEW ")
    	m.QuoteTo(sql, name)
    	sql.WriteString(" AS ")
    
    	m.DB.Statement.AddVar(sql, option.Query)
    
    	if option.CheckOption != "" {
    		sql.WriteString(" ")
    		sql.WriteString(option.CheckOption)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
Back to top