package
0.1.1
Repository: https://github.com/zaporter/go-update-mongo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package hana provides backend for SAP HANA.
Package mysql provides backend for MySQL and compatible databases.
Package postgresql provides backend for PostgreSQL and compatible databases.
Package sqlite provides SQLite backend.

# Functions

BackendContract wraps Backend and enforces its contract.
CollectionContract wraps Collection and enforces its contract.
DatabaseContract wraps Database and enforces its contract.
ErrorCodeIs returns true if err is *Error with one of the given error codes.
NewError creates a new backend error.

# Constants

DefaultIndexName is a name of the index that is created when a collection is created.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
ReservedPrefix for names: databases, collections, schemas, tables, indexes, columns, etc.

# Structs

CollectionInfo represents information about a single collection.
CollectionStatsParams represents the parameters of Collection.Stats method.
CollectionStatsResult represents the results of Collection.Stats method.
CompactParams represents the parameters of Collection.Compact method.
CompactResult represents the results of Collection.Compact method.
CreateCollectionParams represents the parameters of Database.CreateCollection method.
CreateIndexesParams represents the parameters of Collection.CreateIndexes method.
CreateIndexesResult represents the results of Collection.CreateIndexes method.
DatabaseInfo represents information about a single database.
DatabaseStatsParams represents the parameters of Database.Stats method.
DatabaseStatsResult represents the results of Database.Stats method.
DeleteAllParams represents the parameters of Collection.Delete method.
DeleteAllResult represents the results of Collection.Delete method.
DropCollectionParams represents the parameters of Database.DropCollection method.
DropDatabaseParams represents the parameters of Backend.DropDatabase method.
DropIndexesParams represents the parameters of Collection.DropIndexes method.
DropIndexesResult represents the results of Collection.DropIndexes method.
Error represents a backend error returned by all Backend, Database and Collection methods.
ExplainParams represents the parameters of Collection.Explain method.
ExplainResult represents the results of Collection.Explain method.
IndexInfo represents information about a single index.
IndexKeyPair consists of a field name and a sort order that are part of the index.
IndexSize represents the name and the size of an index.
InsertAllParams represents the parameters of Collection.InsertAll method.
InsertAllResult represents the results of Collection.InsertAll method.
ListCollectionsParams represents the parameters of Database.ListCollections method.
ListCollectionsResult represents the results of Database.ListCollections method.
ListDatabasesParams represents the parameters of Backend.ListDatabases method.
ListDatabasesResult represents the results of Backend.ListDatabases method.
ListIndexesParams represents the parameters of Collection.ListIndexes method.
ListIndexesResult represents the results of Collection.ListIndexes method.
QueryParams represents the parameters of Collection.Query method.
QueryResult represents the results of Collection.Query method.
RenameCollectionParams represents the parameters of Database.RenameCollection method.
StatusParams represents the parameters of Backend.Status method.
StatusResult represents the results of Backend.Status method.
UpdateAllParams represents the parameters of Collection.Update method.
UpdateAllResult represents the results of Collection.Update method.

# Interfaces

Backend is a generic interface for all backends for accessing them.
Collection is a generic interface for all backends for accessing collection.
Database is a generic interface for all backends for accessing databases.

# Type aliases

ErrorCode represent a backend error code.