Adding classes to make querying between sqlite/mysql easier
This commit is contained in:
parent
012b4e3614
commit
4bab43466c
9 changed files with 179 additions and 14 deletions
27
TShockAPI/DB/SqlColumn.cs
Normal file
27
TShockAPI/DB/SqlColumn.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TShockAPI.DB
|
||||
{
|
||||
public class SqlColumn
|
||||
{
|
||||
//Required
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
|
||||
//Optional
|
||||
public bool Unique { get; set; }
|
||||
public bool Primary { get; set; }
|
||||
public bool AutoIncrement { get; set; }
|
||||
public bool NotNull { get; set; }
|
||||
public string DefaultValue { get; set; }
|
||||
|
||||
public SqlColumn(string name, string type)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue