Executable that will resequence ids in all tables of a postgres database built with .netcore 8.0 Cross Platform Compatible
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

21 строка
481 B

  1. // See https://aka.ms/new-console-template for more information
  2. using resequence_pgsql;
  3. if (args.Length == 0)
  4. {
  5. using (PGHelper pg = new PGHelper())
  6. {
  7. pg.ResequenceTables();
  8. }
  9. }
  10. else
  11. {
  12. ArgSimple arg = ArgHelper.GetArgs(args);
  13. using (PGHelper pg = new PGHelper(arg.ip, arg.un, arg.pwd, arg.lip, Convert.ToInt32(arg.port), arg.db))
  14. {
  15. pg.ResequenceTables();
  16. }
  17. }
  18. Console.WriteLine("Re-sequencing Ids in database.");