Executable that will resequence ids in all tables of a postgres database built with .netcore 8.0 Cross Platform Compatible
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

před 2 roky
před 2 roky
před 2 roky
1234567891011121314151617181920
  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.");