internal TsVectorHandler(PostgresType postgresType) : base(postgresType) { }
/// <inheritdoc /> public Int16Handler(PostgresType postgresType) : base(postgresType) { }
// Binary Format: int64 expressing microseconds, int32 expressing timezone in seconds, negative /// <summary> /// Constructs an <see cref="TimeTzHandler"/>. /// </summary> public TimeTzHandler(PostgresType postgresType) : base(postgresType) { }
/// <inheritdoc /> public override IRangeHandler CreateRangeHandler(PostgresType rangeBackendType) => throw new NotSupportedException();
/// <inheritdoc /> protected RangeHandler(PostgresType rangePostgresType) : base(rangePostgresType) { }
public BoxHandler(PostgresType pgType) : base(pgType) { }
public Int2VectorHandler(PostgresType arrayPostgresType, PostgresType postgresShortType) : base(arrayPostgresType, new Int16Handler(postgresShortType), ArrayNullabilityMode.Never, 0) { }
bool TryGetMapping(PostgresType pgType, [NotNullWhen(true)] out NpgsqlTypeMapping?mapping) => Mappings.TryGetValue(pgType.Name, out mapping) || Mappings.TryGetValue(pgType.FullName, out mapping) || pgType is PostgresDomainType domain && (
/// <inheritdoc /> public override NpgsqlTypeHandler <string> Create(PostgresType pgType, NpgsqlConnector conn) => new TextHandler(pgType, conn);
/// <inheritdoc /> public override NpgsqlTypeHandler <Dictionary <string, string?> > Create(PostgresType postgresType, NpgsqlConnection conn) => new HstoreHandler(postgresType, conn);
internal HstoreHandler(PostgresType postgresType, NpgsqlConnection connection) : base(postgresType) => _textHandler = new TextHandler(postgresType, connection);
/// <inheritdoc /> public LineHandler(PostgresType postgresType) : base(postgresType) { }
internal BoxHandler(PostgresType postgresType) : base(postgresType) { }
internal VoidHandler(PostgresType postgresType) : base(postgresType) { }
public CircleHandler(PostgresType pgType) : base(pgType) { }
/// <inheritdoc /> protected internal TextHandler(PostgresType postgresType, NpgsqlConnector connector) : this(postgresType, connector.TextEncoding) { }
internal NetTopologySuiteHandler(PostgresType postgresType, PostGisReader reader, PostGisWriter writer) : base(postgresType) { _reader = reader; _writer = writer; }
/// <inheritdoc /> protected internal TextHandler(PostgresType postgresType, Encoding encoding) { PostgresType = postgresType; _encoding = encoding; }
internal HstoreHandler(PostgresType postgresType, TypeHandlerRegistry registry) : base(postgresType) { _textHandler = new TextHandler(postgresType, registry); }
internal override NpgsqlTypeHandler Create(PostgresType pgType, NpgsqlConnection conn) => new Int2VectorHandler(conn.Connector.TypeMapper.DatabaseInfo.ByName["smallint"]) { PostgresType = pgType };
/// <inheritdoc /> protected ArrayHandler(PostgresType arrayPostgresType, NpgsqlTypeHandler elementHandler, int lowerBound = 1) : base(arrayPostgresType) { LowerBound = lowerBound; ElementHandler = elementHandler; }
public Int2VectorHandler(PostgresType postgresShortType) : base(new Int16Handler { PostgresType = postgresShortType }, 0) { }
public SingleHandler(PostgresType pgType) : base(pgType) { }
public override NpgsqlTypeHandler <string> Create(PostgresType postgresType, NpgsqlConnection conn) => new JsonbHandler(postgresType, conn, _settings);
public DoubleHandler(PostgresType pgType) : base(pgType) { }
public JsonbHandler(PostgresType postgresType, NpgsqlConnection connection, JsonSerializerSettings settings) : base(postgresType, connection, isJsonb: true) => _settings = settings;
/// <inheritdoc /> public override NpgsqlTypeHandler <DateTimeOffset> Create(PostgresType postgresType, NpgsqlConnector conn) => conn.DatabaseInfo.HasIntegerDateTimes // Check for the legacy floating point timestamps feature ? new TimeTzHandler(postgresType) : throw new NotSupportedException($"The deprecated floating-point date/time format is not supported by {nameof(Npgsql)}.");
public override NpgsqlTypeHandler <TEnum> Create(PostgresType postgresType, NpgsqlConnection conn) => new EnumHandler <TEnum>(postgresType, _enumToLabel, _labelToEnum);
public MacaddrHandler(PostgresType pgType) : base(pgType) { }
/// <inheritdoc /> public BitStringArrayHandler(PostgresType postgresType, BitStringHandler elementHandler, ArrayNullabilityMode arrayNullabilityMode) : base(postgresType, elementHandler, arrayNullabilityMode) { }