gino.strategies module¶
-
class
gino.strategies.
GinoStrategy
¶ Bases:
sqlalchemy.engine.strategies.EngineStrategy
A SQLAlchemy engine strategy for GINO.
This strategy is initialized automatically as
gino
is imported.If
sqlalchemy.create_engine()
usesstrategy="gino"
, it will return aCoroutine
, and treat URL prefixpostgresql://
orpostgres://
aspostgresql+asyncpg://
.-
async
create
(name_or_url, loop=None, **kwargs)¶ Given arguments, returns a new Engine instance.
-
engine_cls
¶ alias of
gino.engine.GinoEngine
-
name
= 'gino'¶
-
async