Beispiel #1
0
 public static bool IsReferenceType(QsiTableType type)
 {
     return
         (type == QsiTableType.Table ||
          type == QsiTableType.View ||
          type == QsiTableType.MaterializedView);
 }
        QsiScript IQsiRepositoryProvider.LookupDefinition(QsiQualifiedIdentifier identifier, QsiTableType type)
        {
            if (CacheRepository == null)
            {
                return(LookupDefinition(identifier, type));
            }

            if (!CacheRepository.TryGetDefinition(identifier, out var definition))
            {
                definition = LookupDefinition(identifier, type);
                CacheRepository.SetDefinition(identifier, definition);
            }

            return(definition);
        }
 protected abstract QsiScript LookupDefinition(QsiQualifiedIdentifier identifier, QsiTableType type);
Beispiel #4
0
 public QsiScript LookupDefinition(QsiQualifiedIdentifier identifier, QsiTableType type)
 {
     return(_repositoryProvider.LookupDefinition(identifier, type));
 }