New-SQLiteConnection



New-SQLiteConnection

SYNOPSIS

Creates a SQLiteConnection to a SQLite data source

SYNTAX

New-SQLiteConnection [-DataSource] <String[]> [[-Password] <SecureString>] [[-ReadOnly]] [[-Open] <Boolean>] [<CommonParameters>]

DESCRIPTION

Creates a SQLiteConnection to a SQLite data source

EXAMPLES

EXAMPLE 1

$Connection = New-SQLiteConnection -DataSource C:\NAMES.SQLite
Invoke-SQLiteQuery -SQLiteConnection $Connection -query $Query

# Connect to C:\NAMES.SQLite, invoke a query against it

EXAMPLE 2

PARAMETERS

DataSource

Password

ReadOnly

Open

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Last updated