/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test-logs
src/Npgsql/Internal/IPgTypeInfoResolver.cs
21 строка
906 B
Shay Rojansky
Add [Experimental] to converter-related APIs (#5668)
12 апр 2024, 21:10
Не верифицирован
12 апр 2024, 21:10
c86e5ef
Код
Авторство
О чём код?
using System; using System.Diagnostics.CodeAnalysis; using Npgsql.Internal.Postgres; namespace Npgsql.Internal; /// <summary> /// An Npgsql resolver for type info. Used by Npgsql to read and write values to PostgreSQL. /// </summary> [Experimental(NpgsqlDiagnostics.ConvertersExperimental)] public interface IPgTypeInfoResolver { /// <summary> /// Resolve a type info for a given type and data type name, at least one value will be non-null. /// </summary> /// <param name="type">The clr type being requested.</param> /// <param name="dataTypeName">The postgres type being requested.</param> /// <param name="options">Used for configuration state and Npgsql type info or PostgreSQL type catalog lookups.</param> /// <returns>A result, or null if there was no match.</returns> PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options); }