Code Monkey home page Code Monkey logo

litestar-asyncpg's Issues

Bug: the CI will fail currently since there are no tests

Description

pytest returns an exit code of 5 when it finds no tests. This causes the CI to fail. I think there are two options:

  • disable the tests as part of the CI for this repo until tests are added
  • use pytest_sessionfinish to change the exit code to 0 if the exit code is 5

URL to code causing the issue

No response

MCVE

# Your MCVE code here

Steps to reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

No response

Logs

No response

Litestar Version

...

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Bug: `json_serializer` and `json_deserializer` are not being set on the db connection

Description

The json_serializer and json_deserializer are not being set on the database connection. This must be done on each connection as shown here using the init when creating pools.

Also, I propose allowing the two values to be set as None in which case the JSON serialization/deserialization is not set on the connections at all. This would be helpful for cases where the user does not need JSON serialization/deserialization or if they are setting it up in the init method provided to the PoolConfig.

URL to code causing the issue

No response

MCVE

No response

Steps to reproduce

No response

Screenshots

No response

Logs

No response

Litestar Version

...

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.