Skip to content

Database Development Made Easy for .Net

License

Notifications You must be signed in to change notification settings

JasperFx/weasel

Repository files navigation

Weasel

Nuget Package Nuget

Weasel is a library for low level database development with Postgresql and Sql Server. Weasel is in the process of being extracted from Marten with the goal of making this code reusable in other projects.

Read also more in Introducing Weasel for Database Development by Jeremy D. Miller.

Support Plans

JasperFx logo

While Weasel is open source, JasperFx Software offers paid support and consulting contracts for Weasel.

Key Components

  • Core: Foundational interfaces and base classes for database interactions.
  • Postgresql: Types and classes specific to PostgreSQL database features.
  • SqlServer: Types and classes specific to SQL Server database features.
  • Schema: Tools for managing database schema.

Usage

Setting up databases locally

To run tests, you need to set up databases locally. The easiest option is to do it by running Docker images. You can use predefined Docker Compose setup by calling in your terminal:

docker compose up

It'll spin up PostgreSQL and MSSQL databases.

Then, you can run tests from the terminal:

dotnet test

Or your favourite IDE.

Test Config Customization

Some of our tests are run against a particular PostgreSQL version. If you'd like to run different database versions, you can do it by setting POSTGRES_IMAGE or MSSQL_IMAGE env variables, for instance:

POSTGRES_IMAGE=postgres:15.3-alpine MSSQL_IMAGE=mcr.microsoft.com/mssql/server:2022-latest docker compose up

By default Postgres tests are run with case insensitive names. To run tests against case sensitive, set environment variable:

USE_CASE_SENSITIVE_QUALIFIED_NAMES=true

Support Plans

JasperFx logo

While Weasel is open source, JasperFx Software offers paid support and consulting contracts for Weasel.

About

Database Development Made Easy for .Net

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 30

Languages