PluginSQL 1.2.5
dotnet add package PluginSQL --version 1.2.5
NuGet\Install-Package PluginSQL -Version 1.2.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PluginSQL" Version="1.2.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PluginSQL --version 1.2.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PluginSQL, 1.2.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PluginSQL as a Cake Addin #addin nuget:?package=PluginSQL&version=1.2.5 // Install PluginSQL as a Cake Tool #tool nuget:?package=PluginSQL&version=1.2.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
static void Main(string[] args) { Console.Title = "CoreNET - MYSQL";
Console.CancelKeyPress += (s, ev) =>
{
LOG.WriteLine("Salir del servidor.");
};
Thread mainThread = new Thread(new ThreadStart(MainThread));
mainThread.Start();
}
static void MainThread()
{
LOG.WriteLine($"[MYSQL] conectando con MYSQL...", ConsoleColor.Yellow);
//Iniciamos la Conección a MYSQL
MYSQL.Init("127.0.0.1", 3306, "root", "", "demo_core");
bool isCreate = MYSQL.CreateDataBase();
if (isCreate)
{
//Creamos las tablas
MYSQL.CreateTable<Cuenta>();
//Si no hay tablas la creamos
if (MYSQL.Table<Cuenta>().Count == 0)
{
Cuenta cuenta = new Cuenta();
cuenta.date_created = DateTime.Now;
cuenta.date_updated = DateTime.Now;
cuenta.account = "admin";
cuenta.password = "admin";
cuenta.name = "avalontm";
if (cuenta.Insert())
{
LOG.WriteLine($"[Tabla] se ha creado la tabla de 'cuenta'.");
}
}
}
bool mysql_status = MYSQL.CheckStatus();
if (!mysql_status) //Si no se conecto.
{
LOG.WriteLine($"[MYSQL] No se pudo conectar a MYSQL.", ConsoleColor.Red);
return;
}
//Si se ha conectado continuamos.
LOG.WriteLine($"[MYSQL] Conexion correcta.", ConsoleColor.Green);
LOG.WriteLine("Iniciado. [Para detener el server preciona CTRL+C]", ConsoleColor.Green);
//Leemos los datos
var cuentas = Table.GetAll<Cuenta>();
foreach (var cuenta in cuentas)
{
Console.WriteLine($"[Cuenta] {cuenta.account}");
}
Console.WriteLine("");
SpinWait.SpinUntil(() => false);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- MySql.Data (>= 9.1.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.5 | 63 | 11/21/2024 |
1.2.4 | 64 | 11/6/2024 |
1.2.3 | 75 | 10/10/2024 |
1.2.2 | 67 | 10/10/2024 |
1.2.1 | 66 | 10/10/2024 |
1.2.0 | 70 | 10/10/2024 |
1.1.0 | 173 | 1/18/2024 |
1.0.9 | 618 | 7/19/2022 |
1.0.8 | 418 | 7/8/2022 |
1.0.7 | 484 | 2/27/2022 |
1.0.6 | 599 | 1/20/2022 |
1.0.5 | 593 | 1/20/2022 |
1.0.4 | 401 | 8/5/2021 |
1.0.3 | 380 | 4/6/2021 |
1.0.2 | 420 | 1/4/2021 |
1.0.1 | 446 | 11/25/2020 |
1.0.0 | 486 | 11/20/2020 |