_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c15700 | train | // Eval fetches operand from virtual row and run operator | {
"resource": ""
} | ||
c15701 | train | // NewAttribute initialize a new Attribute struct | {
"resource": ""
} | ||
c15702 | train | // Close invalidates and potentially stops any current
// prepared statements and transactions, marking this
// connection as no longer in use.
//
// Because the sql package maintains a free pool of
// connections and only calls Close when there's a surplus of
// idle connections, it shouldn't be necessary for drivers ... | {
"resource": ""
} | ||
c15703 | train | // Begin starts and returns a new transaction. | {
"resource": ""
} | ||
c15704 | train | // Run start a command line interface reading on stdin and execute queries
// on given sql.DB | {
"resource": ""
} | ||
c15705 | train | // Close method closes the connection to RamSQL server | {
"resource": ""
} | ||
c15706 | train | // New method creates a new DriverConn from DriverEndpoint | {
"resource": ""
} | ||
c15707 | train | // Accept read from new channels channel and return an EngineConn | {
"resource": ""
} | ||
c15708 | train | // ReadStatement get SQL statements from client | {
"resource": ""
} | ||
c15709 | train | // WriteResult is used to answer to statements other than SELECT | {
"resource": ""
} | ||
c15710 | train | // WriteError when error occurs | {
"resource": ""
} | ||
c15711 | train | // WriteRowHeader indicates that rows are coming next | {
"resource": ""
} | ||
c15712 | train | // WriteRow must be called after WriteRowHeader and before WriteRowEnd | {
"resource": ""
} | ||
c15713 | train | // WriteRowEnd indicates that query is done | {
"resource": ""
} | ||
c15714 | train | // WriteQuery allows client to query the RamSQL server | {
"resource": ""
} | ||
c15715 | train | // WriteExec allows client to manipulate the RamSQL server | {
"resource": ""
} | ||
c15716 | train | // ReadResult when Exec has been used | {
"resource": ""
} | ||
c15717 | train | // ReadRows when Query has been used | {
"resource": ""
} | ||
c15718 | train | // Insert a tuple in relation | {
"resource": ""
} | ||
c15719 | train | // Exec executes a query that doesn't return rows, such
// as an INSERT or UPDATE. | {
"resource": ""
} | ||
c15720 | train | // Query executes a query that may return rows, such as a
// SELECT. | {
"resource": ""
} | ||
c15721 | train | // UnlimitedRowsChannel buffers incomming message from bufferThis channel and forward them to
// returned channel.
// ONLY CREATED CHANNEL IS CLOSED HERE. | {
"resource": ""
} | ||
c15722 | train | // NewOperator initializes the operator matching the Token number | {
"resource": ""
} | ||
c15723 | train | // EqualityOperator checks if given value are equal | {
"resource": ""
} | ||
c15724 | train | // AddAttribute is used by CREATE TABLE and ALTER TABLE
// Want to check that name isn't already taken | {
"resource": ""
} | ||
c15725 | train | // String returns a printable string with table name and attributes | {
"resource": ""
} | ||
c15726 | train | // Debug prints debug log | {
"resource": ""
} | ||
c15727 | train | // Info prints information log | {
"resource": ""
} | ||
c15728 | train | // Notice prints information that should be seen | {
"resource": ""
} | ||
c15729 | train | // Warning prints warnings for user | {
"resource": ""
} | ||
c15730 | train | // Critical prints error informations | {
"resource": ""
} | ||
c15731 | train | // Logf logs on stdout | {
"resource": ""
} | ||
c15732 | train | // Logf logs in testing log buffer | {
"resource": ""
} | ||
c15733 | train | // ParseInstruction calls lexer and parser, then return Decl tree for each instruction | {
"resource": ""
} | ||
c15734 | train | // ParseDate intends to parse all SQL date format | {
"resource": ""
} | ||
c15735 | train | // Open return an active connection so RamSQL server
// If there is no connection in pool, start a new server.
// After first instantiation of the server, | {
"resource": ""
} | ||
c15736 | train | // Close closes the rows iterator. | {
"resource": ""
} | ||
c15737 | train | // NewChannelEndpoints instanciates a Driver and
// Engine channel endpoints | {
"resource": ""
} | ||
c15738 | train | // Equal returns true if l == b. | {
"resource": ""
} | ||
c15739 | train | // Decode parses b into l and returns error if any.
//
// Decode does not reuse b, so it is safe to corrupt it. | {
"resource": ""
} | ||
c15740 | train | // AppendTo appends Line encoded value to b. | {
"resource": ""
} | ||
c15741 | train | // AppendTo appends all session lines to b and returns b. | {
"resource": ""
} | ||
c15742 | train | // Equal returns true if b == s. | {
"resource": ""
} | ||
c15743 | train | // Value returns value of first attribute. | {
"resource": ""
} | ||
c15744 | train | // Values returns list of values associated to attribute. | {
"resource": ""
} | ||
c15745 | train | // Start returns start of session. | {
"resource": ""
} | ||
c15746 | train | // End returns end of session. | {
"resource": ""
} | ||
c15747 | train | // PayloadFormat returns payload format from a=rtpmap.
// See RFC 4566 Section 6. | {
"resource": ""
} | ||
c15748 | train | // AppendUint appends n to dst and returns the extended dst. | {
"resource": ""
} | ||
c15749 | train | // AddRaw appends k=v to Session. | {
"resource": ""
} | ||
c15750 | train | // AddLine appends t=v to Session. | {
"resource": ""
} | ||
c15751 | train | // AddVersion appends Version field to Session. | {
"resource": ""
} | ||
c15752 | train | // AddPhone appends Phone Address field to Session. | {
"resource": ""
} | ||
c15753 | train | // AddEmail appends Email Address field to Session. | {
"resource": ""
} | ||
c15754 | train | // AddConnectionData appends Connection Data field to Session
// using ConnectionData struct with sensible defaults. | {
"resource": ""
} | ||
c15755 | train | // AddConnectionDataIP appends Connection Data field using only ip address. | {
"resource": ""
} | ||
c15756 | train | // AddSessionName appends Session Name field to Session. | {
"resource": ""
} | ||
c15757 | train | // AddSessionInfo appends Session Information field to Session. | {
"resource": ""
} | ||
c15758 | train | // AddURI appends Uniform Resource Identifier field to Session. | {
"resource": ""
} | ||
c15759 | train | // Equal returns c == b. | {
"resource": ""
} | ||
c15760 | train | // Equal returns b == o. | {
"resource": ""
} | ||
c15761 | train | // AddOrigin appends Origin field to Session. | {
"resource": ""
} | ||
c15762 | train | // TimeToNTP converts time.Time to NTP timestamp with special case for Zero
// time, that is interpreted as 0 timestamp. | {
"resource": ""
} | ||
c15763 | train | // NTPToTime converts NTP timestamp to time.Time with special case for Zero
// time, that is interpreted as 0 timestamp. | {
"resource": ""
} | ||
c15764 | train | // AddTiming appends Timing field to Session. Both start and end can be zero. | {
"resource": ""
} | ||
c15765 | train | // AddTimingNTP appends Timing field to Session with NTP timestamps as input.
// It is just wrapper for AddTiming and NTPToTime. | {
"resource": ""
} | ||
c15766 | train | // AddBandwidth appends Bandwidth field to Session. | {
"resource": ""
} | ||
c15767 | train | // AddRepeatTimes appends Repeat Times field to Session. | {
"resource": ""
} | ||
c15768 | train | // AddRepeatTimesCompact appends Repeat Times field to Session using "compact"
// syntax. | {
"resource": ""
} | ||
c15769 | train | // Equal returns true if b equals to m. | {
"resource": ""
} | ||
c15770 | train | // AddMediaDescription appends Media Description field to Session. | {
"resource": ""
} | ||
c15771 | train | // AddEncryption appends Encryption and is shorthand for AddEncryptionKey. | {
"resource": ""
} | ||
c15772 | train | // AddTimeZones append TimeZones field to Session. | {
"resource": ""
} | ||
c15773 | train | // isKnown returns true if t is defined in RFC 4566. | {
"resource": ""
} | ||
c15774 | train | // isExpected determines if t is expected on pos in s section and returns nil,
// if it is expected and DecodeError if not. | {
"resource": ""
} | ||
c15775 | train | // Append encodes message to Session and returns result.
//
// See RFC 4566 Section 5. | {
"resource": ""
} | ||
c15776 | train | // Optimize returns an option that specifies the optimize option
// If optimize is true, the Debug and Memoize code is completely
// removed from the resulting parser | {
"resource": ""
} | ||
c15777 | train | // BuildParser builds the PEG parser using the provider grammar. The code is
// written to the specified w. | {
"resource": ""
} | ||
c15778 | train | // BasicLatinLookup calculates the decision results for the first 256 characters of the UTF-8 character
// set for a given set of chars, ranges and unicodeClasses to speedup the CharClassMatcher. | {
"resource": ""
} | ||
c15779 | train | // argError prints an error message to stderr, prints the command usage
// and exits with the specified exit code. | {
"resource": ""
} | ||
c15780 | train | // input gets the name and reader to get input text from. | {
"resource": ""
} | ||
c15781 | train | // output gets the writer to write the generated parser to. | {
"resource": ""
} | ||
c15782 | train | // create a ReadCloser that reads from r and closes c. | {
"resource": ""
} | ||
c15783 | train | // astPos is a helper method for the PEG grammar parser. It returns the
// position of the current match as an ast.Pos. | {
"resource": ""
} | ||
c15784 | train | // String returns the textual representation of a position. | {
"resource": ""
} | ||
c15785 | train | // NewRule creates a rule with at the specified position and with the
// specified name as identifier. | {
"resource": ""
} | ||
c15786 | train | // NewLitMatcher creates a new literal matcher at the specified position and
// with the specified value. | {
"resource": ""
} | ||
c15787 | train | // NewCharClassMatcher creates a new character class matcher at the specified
// position and with the specified raw value. It parses the raw value into
// the list of characters, ranges and Unicode classes. | {
"resource": ""
} | ||
c15788 | train | // NewAnyMatcher creates a new any matcher at the specified position. The
// value is provided for completeness' sake, but it is always the dot. | {
"resource": ""
} | ||
c15789 | train | // NewCodeBlock creates a new code block at the specified position and with
// the specified value. The value includes the outer braces. | {
"resource": ""
} | ||
c15790 | train | // NewIdentifier creates a new identifier at the specified position and
// with the specified name. | {
"resource": ""
} | ||
c15791 | train | // NewStringLit creates a new string literal at the specified position and
// with the specified value. | {
"resource": ""
} | ||
c15792 | train | // Init initializes the scanner to read and tokenize text from r. | {
"resource": ""
} | ||
c15793 | train | // read advances the Scanner to the next rune. | {
"resource": ""
} | ||
c15794 | train | // whitespace is the same as Go, except that it doesn't skip newlines,
// those are returned as tokens. | {
"resource": ""
} | ||
c15795 | train | // isLetter has the same definition as Go. | {
"resource": ""
} | ||
c15796 | train | // isDigit has the same definition as Go. | {
"resource": ""
} | ||
c15797 | train | // notify the handler of an error. | {
"resource": ""
} | ||
c15798 | train | // helper to generate and notify of an error. | {
"resource": ""
} | ||
c15799 | train | // helper to generate and notify of an error at a specific position. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.