mirror of
https://gitlab.com/nullmax17/RestySqlite.git
synced 2025-03-14 16:01:13 +03:00
21 lines
635 B
C#
21 lines
635 B
C#
namespace RestySqlite
|
|
{
|
|
public class WebApi
|
|
{
|
|
public static void Main()
|
|
{
|
|
DatabaseWrapper db = new("test");
|
|
|
|
/* string createTableSql = "CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT, email TEXT)";
|
|
string insertSql = "INSERT INTO users (name, email) VALUES (@name, @email)";
|
|
|
|
|
|
db.ExecuteCommand(createTableSql);
|
|
db.ExecuteCommand(insertSql, new Parameter("@name", "John Doe"),
|
|
new Parameter("@email", "[not specified]"));
|
|
*/
|
|
|
|
db.MapColumns();
|
|
}
|
|
}
|
|
} |