Skip to content

Crate and Npgsql in the same app? #7

@hlngo

Description

@hlngo

When creating a new app, Create requires to do the type mapping either at global level:
CrateDbDatabaseInfo.AddCrateDbSpecificTypeMappings(NpgsqlConnection.GlobalTypeMapper);

or do the same thing for connection:
CrateDbDatabaseInfo.AddCrateDbSpecificTypeMappings(con.TypeMapper);

If I use the global approach, is it safe to connect to an PostgreSQL server after doing that? The second approach has a significant performance hit, why is that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions