fullyQualified method

  1. @override
String fullyQualified(
  1. String? prefix
)
override

The fully qualified column name, potentially including a relationshipPrefix. This is the name that should be used in filters (e.g., eq(PostsColumn.userId, 1) might translate to a filter on 'user_id' or 'posts.user_id' or 'author.id' depending on context and prefix).

If relationshipPrefix is set, it returns 'relationshipPrefix.dbName'. Otherwise, it returns dbName.

Implementation

@override
String fullyQualified(String? prefix) {
  if (prefix == tableName) {
    return dbName;
  } else if (prefix != null && prefix.isNotEmpty) {
    return '$prefix.$dbName';
  }
  return relationshipPrefix != null ? '$relationshipPrefix.$dbName' : dbName;
}