From 704e6404950605281ce0780c272d19e3d5a4db70 Mon Sep 17 00:00:00 2001 From: fbachus Date: Fri, 3 Jul 2026 00:29:19 +0200 Subject: [PATCH] style(transport_helper): rename db_insert functions On classes with relational tables, the insert function for the table that matches the actual class (not relation), is now just called dbInsert instead of dbInsertClassname. For inserting to relational Tables, the name stays more descriptive about the relation covered --- lib/transport_helper.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index dd1f705..6430ab1 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -111,7 +111,7 @@ class Route { """); } - void dbInsertRoute() async { + void dbInsert() async { Database database = DbHelper.db; id = await database.insert( "route", @@ -295,7 +295,7 @@ class Station { """); } - void dbInsertStation() async { + void dbInsert() async { Database database = DbHelper.db; database.insert(tableName, toMap()); }