An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/MySQLConnector/Extensions.cs

19 lines
497 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FLocal.Core.DB;
using MySql.Data.MySqlClient;
namespace FLocal.MySQLConnector {
static class Extensions {
public static string compile(this ITableSpec table) {
return "`" + MySqlHelper.EscapeString(table.name) + "`";
}
public static string compile(this ColumnSpec column) {
return column.table.compile() + ".`" + MySqlHelper.EscapeString(column.name) + "`";
}
}
}