# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecodeResumeToken decodes a mock resume token into an uint64 integer.
EncodeResumeToken return mock resume token encoding for an uint64 integer.
NewInMemDatabaseAdminServer creates a new in-mem test server.
NewInMemInstanceAdminServer creates a new in-mem test server.
NewInMemSpannerServer creates a new in-mem test server.
NewMockedSpannerInMemTestServer creates a MockedSpannerInMemTestServer at localhost with a random port and returns client options that can be used to connect to it.
NewMockedSpannerInMemTestServerWithAddr creates a MockedSpannerInMemTestServer at a given listening address and returns client options that can be used to connect to it.
# Constants
MaxRowsPerPartialResultSet is the maximum number of rows returned in each PartialResultSet.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
The method names that can be used to register execution times and errors.
SelectFooFromBar is a SELECT statement that is added to the mocked test server and will return a one-col-two-rows result set containing the INT64 values 1 and 2.
SelectSingerIDAlbumIDAlbumTitleFromAlbums i a SELECT statement that is added to the mocked test server and will return a 3-cols-3-rows result set.
SelectSingerIDAlbumIDAlbumTitleFromAlbumsColCount is the number of cols returned by the SelectSingerIDAlbumIDAlbumTitleFromAlbums statement.
SelectSingerIDAlbumIDAlbumTitleFromAlbumsRowCount is the number of rows returned by the SelectSingerIDAlbumIDAlbumTitleFromAlbums statement.
StatementResultError indicates that the sql statement returns an error.
StatementResultResultSet indicates that the sql statement returns a result set.
StatementResultUpdateCount indicates that the sql statement returns an update count.
UpdateBarSetFoo is an UPDATE statement that is added to the mocked test server that will return an update count of 5.
UpdateBarSetFooRowCount is the constant update count value returned by the statement defined in UpdateBarSetFoo.
UpdateSingersSetLastName is an UPDATE statement that is added to the mocked test server that will return an update count of 1.
UpdateSingersSetLastNameRowCount is the constant update count value returned by the statement defined in UpdateSingersSetLastName.
# Variables
KvMeta is the Metadata for mocked KV table.
# Structs
MockedSpannerInMemTestServer is an InMemSpannerServer with results for a number of SQL statements readily mocked.
PartialResultSetExecutionTime represents execution times and errors that should be used when a PartialResult at the specified resume token is to be returned.
SimulatedExecutionTime represents the time the execution of a method should take, and any errors that should be returned by the method.
StatementResult represents a mocked result on the test server.
# Interfaces
InMemDatabaseAdminServer contains the DatabaseAdminServer interface plus a couple of specific methods for setting mocked results.
InMemInstanceAdminServer contains the InstanceAdminServer interface plus a couple of specific methods for setting mocked results.
InMemSpannerServer contains the SpannerServer interface plus a couple of specific methods for adding mocked results and resetting the server.
# Type aliases
StatementResultType indicates the type of result returned by a SQL statement.