You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
# Search for the package after repo is added.Find-Package Npgsql
Name Version Source Summary
---- ------- ------ -------
Npgsql 4.1.3.1 MyNuGet Npgsql is the open source .NET data provider for Pos...
# Install Npgsql from the newly added repoInstall-Package Npgsql -Force -SkipDependencies -Scope CurrentUser
Name Version Source Summary
---- ------- ------ -------
Npgsql 4.1.3.1 MyNuGet Npgsql is the open source .NET data provider for Pos...
# Verify Npgsql is installedGet-Package-Name Npgsql
Name Version Source ProviderName
---- ------- ------ ------------
Npgsql 4.1.3.1 /usr/local/share/PackageManag... NuGet
# Get the strong Name of the assembly for reference
[System.Reflection.AssemblyName]::GetAssemblyName('/usr/local/share/PackageManagement/NuGet/Packages/Npgsql.4.1.3.1/lib/netstandard2.1/Npgsql.dll').FullName
# Import the Npgsql library for use (Doesn't work in Jupyter)Import-Module'/usr/local/share/PackageManagement/NuGet/Packages/Npgsql.4.1.3.1/lib/netstandard2.1/Npgsql.dll'
Import-Module : Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
At line:2 char:1
+ Import-Module '/usr/local/share/PackageManagement/NuGet/Packages/Npgs ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException
FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
# Doesn't work in JupyterAdd-Type-Path '/usr/local/share/PackageManagement/NuGet/Packages/Npgsql.4.1.3.1/lib/netstandard2.1/Npgsql.dll'
# doesn't work yet, this is helpful https://stackoverflow.com/questions/34674761/how-to-import-the-npgsql-module$connection= [Npgsql.NpgsqlConnection]::new('Host=crdb-1;Port=26257;Username=maxroach;Password="";Database=movr')
$connection.Open()
$command= [Npgsql.NpgsqlCommand]::new('SELECT * from rides limit 10',$connection)
: Unable to find type [Npgsql.NpgsqlConnection].
At line:3 char:15
+ $connection = [Npgsql.NpgsqlConnection]::new('Host=crdb-1;Port=26257; ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (Npgsql.NpgsqlConnection:TypeName) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : TypeNotFound
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expand-Archive .\postgres.zip
ls $bin
The text was updated successfully, but these errors were encountered: