コード例 #1
0
ファイル: SqlServerSqlDumper.cs プロジェクト: dbshell/dbshell
 public override void RenameFunction(FunctionInfo obj, string newname)
 {
     RenameObject(obj, newname);
 }
コード例 #2
0
ファイル: SqlServerSqlDumper.cs プロジェクト: dbshell/dbshell
 public override void ChangeFunctionSchema(FunctionInfo obj, string newschema)
 {
     ChangeObjectSchema(obj, newschema);
 }
コード例 #3
0
ファイル: SqlDumper.cs プロジェクト: dbshell/dbshell
 public virtual void ChangeFunctionSchema(FunctionInfo obj, string newschema)
 {
     throw new System.NotImplementedException();
 }
コード例 #4
0
ファイル: SqlDumper.cs プロジェクト: dbshell/dbshell
 public virtual void RenameFunction(FunctionInfo obj, string newname)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
ファイル: SqlDumper.cs プロジェクト: dbshell/dbshell
 public virtual void DropFunction(FunctionInfo obj, bool testIfExists)
 {
     PutCmd("^drop ^function %f", obj.FullName);
 }
コード例 #6
0
ファイル: SqlDumper.cs プロジェクト: dbshell/dbshell
 public virtual void AlterFunction(FunctionInfo obj)
 {
     WriteRaw(Regex.Replace(obj.CreateSql, @"create\s+function", "ALTER FUNCTION", RegexOptions.IgnoreCase));
     EndCommand();
 }
コード例 #7
0
 public void RenameFunction(FunctionInfo obj, string newname)
 {
     var oldObj = _database.FindFunction(obj);
     if (oldObj != null)
     {
         oldObj.FullName = new NameWithSchema(oldObj.FullName.Schema, newname);
     }
 }
コード例 #8
0
ファイル: SqlDumper.cs プロジェクト: dbshell/dbshell
 public virtual void CreateFunction(FunctionInfo obj)
 {
     WriteRaw(obj.CreateSql);
     EndCommand();
 }
コード例 #9
0
 public void ChangeFunctionSchema(FunctionInfo obj, string newschema)
 {
     var oldObj = _database.FindFunction(obj);
     if (oldObj != null)
     {
         oldObj.FullName = new NameWithSchema(newschema, oldObj.FullName.Name);
     }
 }
コード例 #10
0
 public void AlterFunction(FunctionInfo obj)
 {
     var oldObj = _database.FindFunction(obj);
     if (oldObj != null)
     {
         string gid = oldObj.GroupId;
         oldObj.Assign(obj);
         oldObj.GroupId = gid;
     }
 }
コード例 #11
0
 public void DropFunction(FunctionInfo obj, bool testIfExists)
 {
     _database.Functions.RemoveAll(v => v.FullName == obj.FullName);
 }
コード例 #12
0
 public void CreateFunction(FunctionInfo obj)
 {
     _database.Functions.Add(obj.CloneFunction(_database));
 }
コード例 #13
0
ファイル: FunctionInfo.cs プロジェクト: dbshell/dbshell
 public FunctionInfo CloneFunction(DatabaseInfo ownerDb = null)
 {
     var res = new FunctionInfo(ownerDb ?? OwnerDatabase);
     res.Assign(this);
     return res;
 }