Connect .NET to SQLEye
Use Npgsql for PostgreSQL and MySqlConnector for MySQL, with host 127.0.0.1, the instance’s port and no password. Create the database first, see CLI clients.
How do I configure PostgreSQL?
Section titled “How do I configure PostgreSQL?”Npgsql keys are Host, Port, Username, Password and Database, separated by semicolons.
Host=127.0.0.1;Port=5432;Username=postgres;Database=myappHow do I configure MySQL?
Section titled “How do I configure MySQL?”MySqlConnector accepts Server, Port, User ID, Password and Database. The password defaults to blank.
Server=127.0.0.1;Port=3306;User ID=root;Database=myappReplace the port with your instance’s port. Put the string in appsettings.json under ConnectionStrings or pass it to your provider as usual.
Sources: Npgsql connection string parameters, MySqlConnector connection options. To see the queries your code sends, turn on capture.
SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.