Skip to content

mambastick/MDatabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗂️ MDatabase 🗂️

MDatabase - This is a library created for simplified developer interaction with the database. The library is based on MySQL.Data

How to use ❓

// Initialize database
var database = new MDatabase(
    server: localhost,
    database: TestDB,
    username: admin,
    password: 1234,
);

// Insert info to database
await database.ExecuteNonQueryAsync("INSERT INTO Users (Id, Name) VALUES (1, \"Eugene\");");

// Get info from database
var reader = await database.ExecuteQueryAsync("SELECT * FROM Users;");
if (await reader.ReadAsync())
    Console.WriteLine(reader.GetString("Name")); // Eugene

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages