Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 501 for raws (0.04 sec)

  1. tests/sql_builder_test.go

    		Email string
    	}
    
    	var results []result
    	DB.Raw("SELECT name, age FROM users WHERE name = ? or name = ?", user2.Name, user3.Name).Scan(&results)
    	if len(results) != 2 || results[0].Name != user2.Name || results[1].Name != user3.Name {
    		t.Errorf("Raw with scan")
    	}
    
    	rows, _ := DB.Raw("select name, age from users where name = ?", user3.Name).Rows()
    	count := 0
    	for rows.Next() {
    		count++
    	}
    	if count != 1 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/database/sql/fakedb_test.go

    		}
    		if doInsert {
    			cols[colidx] = val
    		}
    	}
    
    	if doInsert {
    		t.rows = append(t.rows, &row{cols: cols})
    	}
    	return driver.RowsAffected(1), nil
    }
    
    // hook to simulate broken connections
    var hookQueryBadConn func() bool
    
    func (s *fakeStmt) Query(args []driver.Value) (driver.Rows, error) {
    	panic("Use QueryContext")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/maven/MavenPublishS3IntegrationTest.groovy

            if (TestPrecondition.satisfied(UnitTestPreconditions.MacOsM1)) {
                // FIXME KM M1 support might require aws-sdk-java-v2:2.17.198 and higher; see https://github.com/aws/aws-sdk-java-v2/issues/2942
                //   ...or this is just a harmless ST, see https://github.com/aws/aws-sdk-java/issues/2365
                executer.withStackTraceChecksDisabled()
            }
            succeeds 'publish'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers.go

    func printPodList(podList *api.PodList, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    	rows := make([]metav1.TableRow, 0, len(podList.Items))
    	for i := range podList.Items {
    		r, err := printPod(&podList.Items[i], options)
    		if err != nil {
    			return nil, err
    		}
    		rows = append(rows, r...)
    	}
    	return rows, nil
    }
    
    func printPod(pod *api.Pod, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  5. cmd/signature-v2.go

    	"uploadId",
    	"uploads",
    	"versionId",
    	"versioning",
    	"versions",
    	"website",
    }
    
    // Signature and API related constants.
    const (
    	signV2Algorithm = "AWS"
    )
    
    // AWS S3 Signature V2 calculation rule is give here:
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationStringToSign
    func doesPolicySignatureV2Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultRedrawableLabelTest.groovy

            given:
            int previousWriteRow = label.writePosition.row
    
            when:
            label.scrollDownBy(rows)
    
            then:
            label.writePosition.row == previousWriteRow - rows
    
            where:
            rows << [0, 2, 5, 9, 21]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. tests/query_test.go

    	DB.Save(&User{Name: "select_with_variables"})
    
    	rows, _ := DB.Table("users").Where("name = ?", "select_with_variables").Select("? as fake", gorm.Expr("name")).Rows()
    
    	if !rows.Next() {
    		t.Errorf("Should have returned at least one row")
    	} else {
    		columns, _ := rows.Columns()
    		AssertEqual(t, columns, []string{"fake"})
    	}
    
    	rows.Close()
    }
    
    func TestSelectWithArrayInput(t *testing.T) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ConnectorFactoryTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.resource.transport.aws.s3
    
    import org.gradle.api.credentials.AwsCredentials
    import org.gradle.internal.resource.connector.ResourceConnectorSpecification
    import org.gradle.internal.authentication.DefaultAwsImAuthentication
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. src/database/sql/driver/driver.go

    //	[]byte
    //	string
    //	time.Time
    //
    // If the driver supports cursors, a returned Value may also implement the [Rows] interface
    // in this package. This is used, for example, when a user selects a cursor
    // such as "select cursor(select * from my_table) from dual". If the [Rows]
    // from the select is closed, the cursor [Rows] will also be closed.
    type Value any
    
    // NamedValue holds both the value name and value.
    type NamedValue struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 09:04:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultRedrawableLabel.java

        public void scrollBy(int rows) {
            writePos.row -= rows;
            absolutePositionRow += rows;
        }
    
        // According to absolute positioning
        public void scrollUpBy(int rows) {
            scrollBy(-rows);
        }
    
        // According to absolute positioning
        public void scrollDownBy(int rows) {
            scrollBy(rows);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top