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() uses strategy="gino", it will return a Coroutine, and treat URL prefix postgresql:// or postgres:// as postgresql+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'