• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Core
      • DependencyRegistrationCore
    • Mars.Core.Data
      • AbstractConfigLoader
      • AbstractEntityManager
      • AgentManagerImpl
      • DomainDataMediatorImpl
      • EntityManagerImpl
      • IAgentManager
      • IEntityManager
      • IEntityMapping
      • IGeneratedEntityLogger
      • IGeneratedLayerLogger
      • IGeneratedLogger<TModel>
      • IGeneratedTypeLogger
      • IModelCompiler
      • IOutputLogger
      • IPlatformSelector
      • ISchemaMigrationProvider
      • ISerializerManager
      • PlatformSelectorImpl
    • Mars.Core.Data.Compiler
      • AbstractEntityMapper
      • AbstractJitMapper
      • AbstractLayerMapper
      • AbstractMapper<TModel>
      • AbstractTypeMapper
      • RoslynCompilerUtils
    • Mars.Core.Data.Entities
      • CircleFilter
      • Condition
      • ConjunctiveWhere
      • DataFrame
      • DisjunctiveWhere
      • EqualityCondition
      • IntersectionFilter
      • ISelection
      • NearestFilter
      • Query
      • WindowFilter
      • WithinFilter
    • Mars.Core.Data.Exceptions
      • AgentInitializationException
    • Mars.Core.Data.Mapping
      • DefaultSourceProvider
      • ReflectiveMapping
    • Mars.Core.Data.Wrapper
      • AbstractOperationWrapper
      • AbstractWrapper
      • AbstractWrapper<TOptions>
      • GlobalRestrictions
      • ICircleQueryOperation
      • IIntersectionOperation
      • ILookupOperation
      • INearestOperation
      • IOperation
      • IPlatform
      • IQueryOperation
      • IWindowQueryOperation
      • IWithinOperation
      • IWrapper
      • KnnGraphWrapper
      • PostGisWrapper
    • Mars.Core.Data.Wrapper.Document
      • IMongoConnection
      • IMongoWrapper
      • MongoDbIteratorHelper
      • MongoDbWrapper
    • Mars.Core.Data.Wrapper.File
      • AbstractFileWrapper<TOptions>
      • AscWrapper
      • GeoJsonWrapper
    • Mars.Core.Data.Wrapper.Memory
      • DataTableWrapper
      • GeoHashTrieWrapper
      • KdTreeWrapper
      • TripPosition
      • TripPositionCoordinateConverter
      • TripsCollection
      • TripsLineConverter
      • TripsTrajectoryWrapper
    • Mars.Core.Data.Wrapper.Relational
      • AbstractRelationalConnection
      • PostgresSqlDbConnection
      • PostgresSqlWrapper
      • RelationalMapperException
      • RelationalSqlWrapper<TOptions>
      • SqliteDbConnection
      • SqliteWrapper
    • Mars.Core.Data.Wrapper.Stream
      • MqttWrapper
      • SimulationTypeInfo
    • Mars.Core.Executor
      • IRuntimeModel
      • ISimulationProgress
      • IStepExecutor
    • Mars.Core.Executor.Entities
      • Parametrization
      • StepParam
    • Mars.Core.Executor.Implementation
      • RuntimeModelImpl
      • SimulationProgressImpl
      • StepExecutionUseCase
    • Mars.Core.Model
      • IConfigLoader
      • IModelContainer
      • IModelResolver
    • Mars.Core.Model.Entities
      • LayerInstanceContainer
    • Mars.Core.Model.Exceptions
      • InvalidMappingException
      • MissingConstructorException
      • ModelResolutionException
      • ValidationException
    • Mars.Core.Model.Implementation
      • DependencyBuilder
      • MappingHelper
      • ModelContainer
      • ValidationIssueLevel
      • ValidationResult
      • Validator
    • Mars.Core.Simulation
      • ISimulation
      • ISimulationControl
    • Mars.Core.Simulation.Entities
      • SimulationRestartArgs
      • SimulationWorkflowState

    Class PostgresSqlWrapper

    Inheritance
    IDisposable
    AbstractConfigLoader
    AbstractWrapper
    AbstractWrapper<PostgresSqlOptions>
    RelationalSqlWrapper<PostgresSqlOptions>
    PostgresSqlWrapper
    Implements
    IWrapper
    IDisposable
    Inherited Members
    RelationalSqlWrapper<PostgresSqlOptions>.Builder
    RelationalSqlWrapper<PostgresSqlOptions>.Setup()
    RelationalSqlWrapper<PostgresSqlOptions>.MigrateSchema(IGeneratedLayerLogger)
    RelationalSqlWrapper<PostgresSqlOptions>.MigrateSchema(IGeneratedTypeLogger)
    RelationalSqlWrapper<PostgresSqlOptions>.SaveSnapshot(Int64, IGeneratedLayerLogger)
    RelationalSqlWrapper<PostgresSqlOptions>.GetInsertStatement(IGeneratedTypeLogger)
    RelationalSqlWrapper<PostgresSqlOptions>.GetRelation(IGeneratedTypeLogger)
    AbstractWrapper<PostgresSqlOptions>.Options
    AbstractWrapper.FrameSelector
    AbstractWrapper.Serializer
    AbstractWrapper.Name
    AbstractWrapper.IsInitialized
    AbstractWrapper.SaveSnapshotByType(Int64, IGeneratedTypeLogger)
    AbstractWrapper.TearDown()
    AbstractWrapper.WriteEntityResult(Int64, IGeneratedEntityLogger)
    AbstractWrapper.WriteLayerResult(Int64, IGeneratedLayerLogger)
    AbstractConfigLoader.Logger
    AbstractConfigLoader.ConfigLoader
    AbstractConfigLoader.SimulationConfig
    AbstractConfigLoader.Context
    AbstractConfigLoader.ModelDescription
    AbstractConfigLoader.Dispose()
    Namespace: Mars.Core.Data.Wrapper.Relational
    Assembly: Mars.Core.dll
    Syntax
    public class PostgresSqlWrapper : RelationalSqlWrapper<PostgresSqlOptions>, IWrapper, IDisposable

    Constructors

    PostgresSqlWrapper(IConfigLoader, ISerializerManager, PostgresSqlOptions)

    Creates a new instance of ths AbstractWrapper<TOptions>, implementing the IWrapper contract.
    Declaration
    public PostgresSqlWrapper(IConfigLoader config, ISerializerManager serializer, PostgresSqlOptions options)
    Parameters
    Type Name Description
    IConfigLoader config The result adapter root inputConfiguration object.
    ISerializerManager serializer The serializer endpoint to access the model without any reflection.
    PostgresSqlOptions options The options object containing input/output specifics.

    Properties

    Connection

    Declaration
    public override IDbConnection Connection { get; }
    Property Value
    Type Description
    IDbConnection
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.Connection

    MigrationProvider

    Declaration
    public override ISchemaMigrationProvider MigrationProvider { get; }
    Property Value
    Type Description
    ISchemaMigrationProvider
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.MigrationProvider

    Methods

    CreateBuilder()

    Declaration
    protected override DbConnectionStringBuilder CreateBuilder()
    Returns
    Type Description
    DbConnectionStringBuilder
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.CreateBuilder()

    GetEntityName(IGeneratedTypeLogger)

    Declaration
    protected override object GetEntityName(IGeneratedTypeLogger proxy)
    Parameters
    Type Name Description
    IGeneratedTypeLogger proxy
    Returns
    Type Description
    System.Object
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.GetEntityName(Mars.Core.Data.IGeneratedTypeLogger)

    GetEntityName(Type)

    Declaration
    protected override object GetEntityName(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    System.Object
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.GetEntityName(Type)

    SaveSnapshot(Int64, IGeneratedTypeLogger)

    This method applies the write operation on each entity associated to the and or can be override to keep control of the entity serialization. In contrast to SaveSnapshotByType(Int64, IGeneratedTypeLogger) this method has already been checked, whether the type shall be serialized.
    Declaration
    public override void SaveSnapshot(long currentTick, IGeneratedTypeLogger typeLogger)
    Parameters
    Type Name Description
    System.Int64 currentTick The current simulation tick
    IGeneratedTypeLogger typeLogger The considered entity type to write a snapshot for
    Overrides
    Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<PostgresSqlOptions>.SaveSnapshot(System.Int64, Mars.Core.Data.IGeneratedTypeLogger)

    Implements

    IWrapper
    IDisposable
    Back to top Copyright © MARS GROUP.
    HAW Hamburg