summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Stations.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-02-09 19:09:16 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-02-09 19:09:16 +0100
commit39ebc84e5f29c971d6a91594e548299c918b56b5 (patch)
treea95aaa7b9cdb9a606da9622dbbe41cde6848d8eb /lib/Travelynx/Model/Stations.pm
parentfe0a8738999e12f53c149cfdb227172959e19cfb (diff)
add dumpstops command2.5.16
Diffstat (limited to 'lib/Travelynx/Model/Stations.pm')
-rw-r--r--lib/Travelynx/Model/Stations.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Stations.pm b/lib/Travelynx/Model/Stations.pm
index 5bbe781..ac4019c 100644
--- a/lib/Travelynx/Model/Stations.pm
+++ b/lib/Travelynx/Model/Stations.pm
@@ -71,6 +71,12 @@ sub add_meta {
}
}
+sub get_db_iterator {
+ my ($self) = @_;
+
+ return $self->{pg}->db->select( 'stations', '*' );
+}
+
sub get_meta {
my ( $self, %opt ) = @_;
my $db = $opt{db} // $self->{pg}->db;