SimplySql | PowerShell module for querying various SQL databases | SQL Database library

 by   mithrandyr PowerShell Version: v1.9.1 License: MIT

kandi X-RAY | SimplySql Summary

kandi X-RAY | SimplySql Summary

SimplySql is a PowerShell library typically used in Database, SQL Database, Oracle applications. SimplySql has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Querying SQL (SQL Server, Oracle, PostgreSql, SQLite, & mySql) the PowerShell way: simple commands... powerful opportunities. SimplySql is a module that provides an intuitive set of cmdlets for talking to databases that abstracts the vendor specifics, allowing you to focus on getting work done. The basic pattern is to connect to a database, invoke one or more sql statements and then close your database connection. This module provides cmdlets that map to this basic pattern. Each Provider has its own 'Open-*Connection' cmdlet, but the remaining cmdlets are provider agnostic (MSSQL: Open-SqlConnection, Oracle: Open-OracleConnection, SQLite: Open-SQLiteConnection, etc). You can have multiple connections open, just distinguish them through the use of the -ConnectionName parameter on every command (if no ConnectionName is specified, it defaults to 'default'). See the Wiki for more details.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SimplySql has a low active ecosystem.
              It has 150 star(s) with 29 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 39 open issues and 55 have been closed. On average issues are closed in 25 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SimplySql is v1.9.1

            kandi-Quality Quality

              SimplySql has 0 bugs and 0 code smells.

            kandi-Security Security

              SimplySql has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              SimplySql code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              SimplySql is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              SimplySql releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SimplySql
            Get all kandi verified functions for this library.

            SimplySql Key Features

            No Key Features are available at this moment for SimplySql.

            SimplySql Examples and Code Snippets

            No Code Snippets are available at this moment for SimplySql.

            Community Discussions

            QUESTION

            Call Python script per PowerShell & passing PSObject and return the parsed data
            Asked 2020-Nov-29 at 21:30

            some background: currently I am querying 4Mio rows (with 50 columns) from a MS SQL server with dbatools into a PSObject (in Batch 10.000 rows each query), processing the data with PowerShell (a lot of RegEx stuff) and writing back into a MariaDb with SimplySql. In average i get approx. 150 rows/sec. Had to use a lot of tricks (Net's Stringbuilder etc.) for this performance, its not that bad imho

            As new requirements I want to detect the language of some text cells and I have to remove personal data (name & address). I found some good python libs (spacy and pycld2) for that purpose. I made tests with pycld2 - pretty good detection.

            Simplified code for clarification (hint:I am a python noob):

            ...

            ANSWER

            Answered 2020-Nov-29 at 21:30

            The following simplified example shows you how you can pass multiple [pscustomobject] ([psobject]) instances from PowerShell to a Python script (passed as a string via -c in this case):

            • by using JSON as the serialization format, via ConvertTo-Json...

            • ... and passing that JSON via the pipeline, which Python can read via stdin (standard input).

            Important:

            • Character encoding:

              • PowerShell uses the encoding specified in the $OutputEncoding preference variable when sending data to external programs (such as Python), which commendably defaults to BOM-less UTF-8 in PowerShell [Core] v6+, but regrettably to ASCII(!) in Windows PowerShell.

              • Just like PowerShell limits you to sending text to an external program, it also invariably interprets what it receives as text, namely based on the encoding stored in [Console]::OutputEncoding; regrettably, both PowerShell editions as of this writing default to the system's OEM code page.

              • To both send and receive (BOM-less) UTF-8 in both PowerShell editions, (temporarily) set $OutputEncoding and [Console]::OutputEncoding as follows:
                $OutputEncoding = [Console]::OutputEncoding = [System.Text.Utf8Encoding]::new($false)

            • If you want your Python script to also output objects, again consider using JSON, which on the PowerShell you can parse into objects with ConvertFrom-Json.

            Source https://stackoverflow.com/questions/65049029

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install SimplySql

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries