git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9915de6) | patch
Make PostgresNode easily subclassable
2017年7月25日 22:39:44 +0000 (18:39 -0400)
2017年7月25日 22:51:47 +0000 (18:51 -0400)
commit 54dacc746628799a3a09ebb78876b0a8d2742d23
Make PostgresNode easily subclassable

This module becomes much more useful if we allow it to be used as base
class for external projects. To achieve this, change the exported
get_new_node function into a class method instead, and use the standard
Perl idiom of accepting the class as first argument. This method works
as expected for subclasses. The standalone function is kept for
backwards compatibility, though it could be removed in pg11.

Author: Chap Flackman, based on an earlier patch from Craig Ringer
Discussion: https://postgr.es/m/CAMsr+YF8kO+4+K-_U4PtN==2FndJ+5Bn6A19XHhMiBykEwv0wA@mail.gmail.com
src/test/perl/PostgresNode.pm diff | blob | blame | history
src/test/perl/README diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /