_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c13900 | // Reset removes all of functions.
// Both from the worker and job servers. | |
c13901 | // Set the worker's unique id. | |
c13902 | // inner job executing | |
c13903 | // Which server was this for? | |
c13904 | // Extract the Response's result.
// if data == nil, err != nil, then worker failing to execute job
// if data != nil, err != nil, then worker has a exception
// if data != nil, err == nil, then worker complate job
// after calling this method, the Response.Handle will be filled | |
c13905 | // Extract the job's update | |
c13906 | // Decode a job from byte slice | |
c13907 | // Send some datas to client.
// Using this in a job's executing. | |
c13908 | // Update status.
// Tall client how many percent job has been executed. | |
c13909 | // Decode job from byte slice | |
c13910 | // Get the secondary cache for a given primary key. This operation will
// never return nil. In the case where the primary key does not exist, a
// new, underlying, empty bucket will be created and returned. | |
c13911 | // Replace the value if it exists, does not set if it doesn't.
// Returns true if the item existed an was replaced, false otherwise.
// Replace does not reset item's TTL nor does it alter its position in the LRU | |
c13912 | // Attempts to get the value from the cache and calles fetch on a miss.
// If fetch returns an error, no value is cached and the error is returned back
// to the caller. | |
c13913 | // Deletes all items that share the same primary key | |
c13914 | //this isn't thread safe. It's meant to be called from non-concurrent tests | |
c13915 | // Replace the value if it exists, does not set if it doesn't.
// Returns true if the item existed an was replaced, false otherwise.
// Replace does not reset item's TTL | |
c13916 | // Get the secondary key.
// The semantics are the same as for LayeredCache.Get | |
c13917 | // Set the secondary key to a value.
// The semantics are the same as for LayeredCache.Set | |
c13918 | // Fetch or set a secondary key.
// The semantics are the same as for LayeredCache.Fetch | |
c13919 | // Delete a secondary key.
// The semantics are the same as for LayeredCache.Delete | |
c13920 | // Replace a secondary key.
// The semantics are the same as for LayeredCache.Replace | |
c13921 | // Track a secondary key.
// The semantics are the same as for LayeredCache.TrackingGet | |
c13922 | // Parse decodes a DER encoded PKCS7 package | |
c13923 | // GetOnlySigner returns an x509.Certificate for the first signer of the signed
// data payload. If there are more or less than one signer, nil is returned | |
c13924 | // Decrypt decrypts encrypted content info for recipient cert and private key | |
c13925 | // AddSigner signs attributes about the content and adds certificate to payload | |
c13926 | // AddCertificate adds the certificate to the payload. Useful for parent certificates | |
c13927 | // complexity calculates the cyclomatic complexity of a function. | |
c13928 | // GenerateFixtures generates fixtures for the current contents of a database, and saves
// them to the specified directory | |
c13929 | // NewSelectQuery creates a new SelectQuery instance. | |
c13930 | // Select specifies the columns to be selected.
// Column names will be automatically quoted. | |
c13931 | // AndSelect adds additional columns to be selected.
// Column names will be automatically quoted. | |
c13932 | // Distinct specifies whether to select columns distinctively.
// By default, distinct is false. | |
c13933 | // SelectOption specifies additional option that should be append to "SELECT". | |
c13934 | // From specifies which tables to select from.
// Table names will be automatically quoted. | |
c13935 | // Where specifies the WHERE condition. | |
c13936 | // InnerJoin specifies an INNER JOIN clause.
// This is a shortcut method for Join. | |
c13937 | // LeftJoin specifies a LEFT JOIN clause.
// This is a shortcut method for Join. | |
c13938 | // RightJoin specifies a RIGHT JOIN clause.
// This is a shortcut method for Join. | |
c13939 | // OrderBy specifies the ORDER BY clause.
// Column names will be properly quoted. A column name can contain "ASC" or "DESC" to indicate its ordering direction. | |
c13940 | // AndOrderBy appends additional columns to the existing ORDER BY clause.
// Column names will be properly quoted. A column name can contain "ASC" or "DESC" to indicate its ordering direction. | |
c13941 | // GroupBy specifies the GROUP BY clause.
// Column names will be properly quoted. | |
c13942 | // AndGroupBy appends additional columns to the existing GROUP BY clause.
// Column names will be properly quoted. | |
c13943 | // Having specifies the HAVING clause. | |
c13944 | // Union specifies a UNION clause. | |
c13945 | // UnionAll specifies a UNION ALL clause. | |
c13946 | // Limit specifies the LIMIT clause.
// A negative limit means no limit. | |
c13947 | // Offset specifies the OFFSET clause.
// A negative offset means no offset. | |
c13948 | // Bind specifies the parameter values to be bound to the query. | |
c13949 | // AndBind appends additional parameters to be bound to the query. | |
c13950 | // Build builds the SELECT query and returns an executable Query object. | |
c13951 | // NewPgsqlBuilder creates a new PgsqlBuilder instance. | |
c13952 | // BuildSelect generates a SELECT clause from the given selected column names. | |
c13953 | // BuildFrom generates a FROM clause from the given tables. | |
c13954 | // BuildJoin generates a JOIN clause from the given join information. | |
c13955 | // BuildWhere generates a WHERE clause from the given expression. | |
c13956 | // BuildGroupBy generates a GROUP BY clause from the given group-by columns. | |
c13957 | // BuildUnion generates a UNION clause from the given union information. | |
c13958 | // BuildOrderBy generates the ORDER BY clause. | |
c13959 | // BuildLimit generates the LIMIT clause. | |
c13960 | // ScanMap populates the current row of data into a NullStringMap.
// Note that the NullStringMap must not be nil, or it will panic.
// The NullStringMap will be populated using column names as keys and their values as
// the corresponding element values. | |
c13961 | // all populates all rows of query result into a slice of struct or NullStringMap.
// Note that the slice must be given as a pointer. | |
c13962 | // column populates the given slice with the first column of the query result.
// Note that the slice must be given as a pointer. | |
c13963 | // one populates a single row of query result into a struct or a NullStringMap.
// Note that if a struct is given, it should be a pointer. | |
c13964 | // row populates a single row of query result into a list of variables. | |
c13965 | // NewQuery creates a new Query with the given SQL statement. | |
c13966 | // logSQL returns the SQL statement with parameters being replaced with the actual values.
// The result is only for logging purpose and should not be used to execute. | |
c13967 | // log logs a message for the currently executed SQL statement. | |
c13968 | // Close closes the underlying prepared statement.
// Close does nothing if the query has not been prepared before. | |
c13969 | // Execute executes the SQL statement without retrieving data. | |
c13970 | // Row executes the SQL statement and populates the first row of the result into a list of variables.
// Note that the number of the variables should match to that of the columns in the query result.
// Note that when the query has no rows in the result set, an sql.ErrNoRows will be returned. | |
c13971 | // Column executes the SQL statement and populates the first column of the result into a slice.
// Note that the parameter must be a pointer to a slice. | |
c13972 | // Rows executes the SQL statement and returns a Rows object to allow retrieving data row by row. | |
c13973 | // replacePlaceholders converts a list of named parameters into a list of anonymous parameters. | |
c13974 | // NewOciBuilder creates a new OciBuilder instance. | |
c13975 | // NewQuery creates a new Query object with the given SQL statement.
// The SQL statement may contain parameter placeholders which can be bound with actual parameter
// values before the statement is executed. | |
c13976 | // Insert creates a Query that represents an INSERT SQL statement.
// The keys of cols are the column names, while the values of cols are the corresponding column
// values to be inserted. | |
c13977 | // CreateTable creates a Query that represents a CREATE TABLE SQL statement.
// The keys of cols are the column names, while the values of cols are the corresponding column types.
// The optional "options" parameters will be appended to the generated SQL statement. | |
c13978 | // TruncateTable creates a Query that can be used to truncate a table. | |
c13979 | // AddColumn creates a Query that can be used to add a column to a table. | |
c13980 | // CreateIndex creates a Query that can be used to create an index for a table. | |
c13981 | // quoteColumns quotes a list of columns and concatenates them with commas. | |
c13982 | // NewMssqlBuilder creates a new MssqlBuilder instance. | |
c13983 | // NewMysqlBuilder creates a new MysqlBuilder instance. | |
c13984 | // DropForeignKey creates a Query that can be used to remove the named foreign key constraint from a table. | |
c13985 | // NewFromDB encapsulates an existing database connection. | |
c13986 | // Clone makes a shallow copy of DB. | |
c13987 | // BeginTx starts a transaction with the given context and transaction options. | |
c13988 | // Wrap encapsulates an existing transaction. | |
c13989 | // Transactional starts a transaction and executes the given function.
// If the function returns an error, the transaction will be rolled back.
// Otherwise, the transaction will be committed. | |
c13990 | // TransactionalContext starts a transaction and executes the given function with the given context and transaction options.
// If the function returns an error, the transaction will be rolled back.
// Otherwise, the transaction will be committed. | |
c13991 | // QuoteTableName quotes the given table name appropriately.
// If the table name contains DB schema prefix, it will be handled accordingly.
// This method will do nothing if the table name is already quoted or if it contains parenthesis. | |
c13992 | // QuoteColumnName quotes the given column name appropriately.
// If the table name contains table name prefix, it will be handled accordingly.
// This method will do nothing if the column name is already quoted or if it contains parenthesis. | |
c13993 | // newBuilder creates a query builder based on the current driver name. | |
c13994 | // Delete deletes a row in the table using the primary key specified by the struct model associated with this query. | |
c13995 | // NewStandardBuilder creates a new StandardBuilder instance. | |
c13996 | // NewSqliteBuilder creates a new SqliteBuilder instance. | |
c13997 | // DropColumn creates a Query that can be used to drop a column from a table. | |
c13998 | // AlterColumn creates a Query that can be used to change the definition of a table column. | |
c13999 | // DropPrimaryKey creates a Query that can be used to remove the named primary key constraint from a table. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.