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