Executable that will resequence ids in all tables of a postgres database built with .netcore 8.0 Cross Platform Compatible
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.

пре 2 година
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, arg.port, arg.db))
  14. {
  15. pg.ResequenceTables();
  16. }
  17. }
  18. Console.WriteLine("Re-sequencing Ids in database.");