sqlstring VS MySqlConnector

Compare sqlstring vs MySqlConnector and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
sqlstring MySqlConnector
1 8
391 1,356
0.0% 0.6%
0.0 9.1
about 2 years ago 5 days ago
JavaScript C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

sqlstring

Posts with mentions or reviews of sqlstring. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-05.
  • Finding an Authorization Bypass on My Own Website
    8 projects | news.ycombinator.com | 5 Mar 2022
    As a security professional, I was horrified to find out that the maintainers don't consider this a security issue, though they did promise to take this seriously and change the API when they were made aware of it in 2014 (https://github.com/mysqljs/mysql/issues/731).

    So I bumped an issue, noting this is all over HN, and offered to write a pull request for the API change proposed by the maintainers:

    https://github.com/mysqljs/sqlstring/issues/60

    Doug agreed to accept such a request, so I just sat down to figure out the code and a reasonable upgrade plan.

    Three hours later, I proudly wrote Doug this email (pasting it here because the issue and codebase are locked to non-contributors so I had to send it via email):

    OK, I have a draft pull request ready. Of course, it's a big change and I expect to get a lot of feedback and have a few rounds of back and forth and fixups before it is accepted.

    This is the plan as I envision it:

    * Release SqlString 3.0.0 that has a new allowObjectValues parameter defaulting to false. This is a new major, so it shouldn't break anybody's code.

MySqlConnector

Posts with mentions or reviews of MySqlConnector. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-06.
  • Faster MySQL with HTTP/3
    2 projects | news.ycombinator.com | 6 Jan 2023
    MySqlConnector (the most popular .NET library for MySQL, and the one that I authored) has supported protocol compression for many years: https://github.com/mysql-net/MySqlConnector/issues/31.
  • Implementing the MySQL server protocol for fun and profit
    2 projects | news.ycombinator.com | 22 Dec 2022
    > I kept technical notes about the protocol, to serve as a future reference for myself and for other developers.

    As someone who's written a MySQL client (in C#: https://github.com/mysql-net/MySqlConnector), I'd be very interested to see your notes. Are they available anywhere, or were they the confidential IP of your client?

    > Unsurprisingly, bugs were uncovered every time a new client was added.

    I've faced the same thing, from a client perspective. Every time a new server is tested (MySQL, MariaDB, Amazon Aurora, Azure Database for MySQL, etc.), I find slightly different interpretations of the protocol and have to accommodate them.

  • Ask HN: Examples of Top C# Code?
    29 projects | news.ycombinator.com | 25 Oct 2022
    I have had the pleasure of contributing to a couple different networked drivers with very talented maintainers that I like to use as references.

    One supports a wide array of Framework versions and has both Sync and Async I/O, as it must to implement the ADO.NET database driver interfaces. Reading the internals really highlight the way that .NET has evolved over the years and what must be done in each target version to maximize performance:

    https://github.com/mysql-net/MySqlConnector

    The other supports .NET 6 only with Async I/O only. This support policy seems to be the way that "modern" .NET development is headed, as .NET 6 will be the floor for LTS .NET (formerly .NET Core) releases in a few months. Async APIs only greatly simplify development, and make it simpler to remain performant when targeting WASM.

    https://github.com/Cysharp/AlterNats

    As a library maintainer, one thing I often wonder about is how to indicate .NET version support. One option would be for the major version of the library to track the major version of .NET, so if I were to publish a new library today then start with .NET 6 support and start with version number 6.0.0 instead of 1.0.0. This would limit the library to only making breaking changes when the .NET version changes though.

  • Do I need to worry about connection pooling/etc with MySql.Data.MySqlClient?
    1 project | /r/dotnet | 5 Oct 2022
  • Need some help/direction reading CSV into MySQL without duplication
    3 projects | /r/csharp | 30 Aug 2022
    Use the MySqlConnector to load the data into a temp table using the bulk copy API. Both of my libraries implement the IDataReader (DbDataReader) interface, so they can be directly used with the bulk copy APIs. Then insert into the final table from the temp table filtering out rows that are already in the final table.
  • Finding an Authorization Bypass on My Own Website
    8 projects | news.ycombinator.com | 5 Mar 2022
  • Performance Improvements in .NET 6
    14 projects | news.ycombinator.com | 19 Aug 2021
    I'm the author of what you might call the "new" MySQL ADO.NET library: https://github.com/mysql-net/MySqlConnector

    I agree with your impression that developers of the other library don't seem to be "plugged in to" the .NET ecosystem. As an independent developer (not affiliated with Oracle or Microsoft), I've been able to influence GitHub PRs that shape the ADO.NET API for .NET 6.0, just by showing up and contributing; I haven't seen anyone from the Oracle MySQL team participating. Meanwhile, they violate basic principles of the .NET Framework Design Guidelines that have been around for over a decade (https://docs.microsoft.com/en-us/dotnet/standard/design-guid...), which makes their library feel alien to a .NET programmer (regardless of the quality issues it might have).

  • MongoDB C# Driver Vs. MongoDB.Entities Benchmark
    2 projects | /r/dotnet | 18 Jun 2021
    e.g. this community effort of a MySQL ADO.NET provider is miles ahead of Oracle's driver.

What are some alternatives?

When comparing sqlstring and MySqlConnector you can also consider the following projects:

go-sql-driver/mysql - Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package

Pomelo.EntityFrameworkCore.MySql - Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector

Strapi - 🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.

Avalonia.FuncUI - Develop cross-plattform GUI Applications using F# and Avalonia!

MySQL - A pure node.js JavaScript Client implementing the MySQL protocol.

openiddict-core - Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET

Hot Chocolate - Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.

Marten - .NET Transactional Document DB and Event Store on PostgreSQL

aqtinstall - aqt: Another (unofficial) Qt CLI Installer on multi-platforms

IdentityServer - The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core

hotchocolate - Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE. [Moved to: https://github.com/ChilliCream/graphql-platform]

Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology