Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: taskfile + poetry based db init REF #24
this is a long standing feature request where you are able to use a taskfile endpoint to initialise the database. sqlalchemy uses asyncio, the following makes available a method in the package which is a asyncio wrapper for the sqlalchemy metadata create and rop methods. you can use 2023-03-06 03:42:45,317 INFO sqlalchemy.engine.Engine select pg_catalog.version() 2023-03-06 03:42:45,317 INFO sqlalchemy.engine.Engine [raw sql] () 2023-03-06 03:42:45,318 INFO sqlalchemy.engine.Engine select current_schema() 2023-03-06 03:42:45,318 INFO sqlalchemy.engine.Engine [raw sql] () 2023-03-06 03:42:45,319 INFO sqlalchemy.engine.Engine show standard_conforming_strings 2023-03-06 03:42:45,319 INFO sqlalchemy.engine.Engine [raw sql] () 2023-03-06 03:42:45,319 INFO sqlalchemy.engine.Engine BEGIN (implicit) 2023-03-06 03:42:45,320 INFO sqlalchemy.engine.Engine COMMIT to invoke this routine, which in turn uses a poetry script to run the method provided by the package. note that this has hard coded references to the labs package which will have to be cleaned by the eject script in #55 poetry is run in the container which should have the configuration variables required for the database environment
- Loading branch information