Executable that will resequence ids in all tables of a postgres database built with .netcore 8.0 Cross Platform Compatible
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

21 linhas
464 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, arg.port, arg.db))
  14. {
  15. pg.ResequenceTables();
  16. }
  17. }
  18. Console.WriteLine("Re-sequencing Ids in database.");