Search Results for

    Show / Hide Table of Contents

    Class HstoreHandlerFactory

    A factory for type handlers for the PostgreSQL hstore extension data type, which stores sets of key/value pairs within a single PostgreSQL value.

    Inheritance
    Object
    NpgsqlTypeHandlerFactory
    NpgsqlTypeHandlerFactory<Dictionary<String, String>>
    HstoreHandlerFactory
    Inherited Members
    NpgsqlTypeHandlerFactory<Dictionary<String, String>>.Create(PostgresType, NpgsqlConnection)
    NpgsqlTypeHandlerFactory<Dictionary<String, String>>.CreateNonGeneric(PostgresType, NpgsqlConnection)
    NpgsqlTypeHandlerFactory<Dictionary<String, String>>.DefaultValueType
    NpgsqlTypeHandlerFactory.CreateNonGeneric(PostgresType, NpgsqlConnection)
    NpgsqlTypeHandlerFactory.DefaultValueType
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Npgsql.TypeHandlers
    Assembly: Npgsql.dll
    Syntax
    public class HstoreHandlerFactory : NpgsqlTypeHandlerFactory<Dictionary<string, string>>
    Remarks

    See https://www.postgresql.org/docs/current/hstore.html.

    The type handler API allows customizing Npgsql's behavior in powerful ways. However, although it is public, it should be considered somewhat unstable, and may change in breaking ways, including in non-major releases. Use it at your own risk.

    Methods

    Create(PostgresType, NpgsqlConnection)

    Creates a type handler.

    Declaration
    public override NpgsqlTypeHandler<Dictionary<string, string>> Create(PostgresType postgresType, NpgsqlConnection conn)
    Parameters
    Type Name Description
    PostgresType postgresType
    NpgsqlConnection conn
    Returns
    Type Description
    NpgsqlTypeHandler<Dictionary<String, String>>
    Overrides
    Npgsql.TypeHandling.NpgsqlTypeHandlerFactory<System.Collections.Generic.Dictionary<System.String, System.String>>.Create(Npgsql.PostgresTypes.PostgresType, Npgsql.NpgsqlConnection)
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team