< Back
Get-MdbcDatabase
Post
NAME Get-MdbcDatabase
SYNOPSIS
Gets databases.
SYNTAX
Get-MdbcDatabase [[-Name] <String>] [-Client <MongoClient>] [-Settings <MongoDatabaseSettings>]
[<CommonParameters>]
DESCRIPTION
This cmdlet gets the database instance specified by its name, existing or not. This instance may be used as the
parameter Database of relevant cmdlets. Missing databases are created automatically as soon as needed.
PARAMETERS
-Name
Specifies the database name. If it is omitted then all databases are returned.
Required? false
Position? 0
Default value
Accept pipeline input?
Accept wildcard characters?
-Client
Client instance. If it is omitted then the variable $Client is used. It is obtained by Connect-Mdbc or using
the driver API.
Required? false
Position? named
Default value
Accept pipeline input?
Accept wildcard characters?
-Settings
Extra settings, see MongoDB.Driver.MongoDatabaseSettings
Required? false
Position? named
Default value
Accept pipeline input?
Accept wildcard characters?
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
[MongoDB.Driver.IMongoDatabase]
Database instance.
RELATED LINKS
Connect-Mdbc
SYNOPSIS
Gets databases.
SYNTAX
Get-MdbcDatabase [[-Name] <String>] [-Client <MongoClient>] [-Settings <MongoDatabaseSettings>]
[<CommonParameters>]
DESCRIPTION
This cmdlet gets the database instance specified by its name, existing or not. This instance may be used as the
parameter Database of relevant cmdlets. Missing databases are created automatically as soon as needed.
PARAMETERS
-Name
Specifies the database name. If it is omitted then all databases are returned.
Required? false
Position? 0
Default value
Accept pipeline input?
Accept wildcard characters?
-Client
Client instance. If it is omitted then the variable $Client is used. It is obtained by Connect-Mdbc or using
the driver API.
Required? false
Position? named
Default value
Accept pipeline input?
Accept wildcard characters?
-Settings
Extra settings, see MongoDB.Driver.MongoDatabaseSettings
Required? false
Position? named
Default value
Accept pipeline input?
Accept wildcard characters?
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
[MongoDB.Driver.IMongoDatabase]
Database instance.
RELATED LINKS
Connect-Mdbc