sql.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:annotated-py-sqlalchemy 作者: hhstore 项目源码 文件源码
def bindparam(key, value = None, type=None):
    """creates a bind parameter clause with the given key.  

    An optional default value can be specified by the value parameter, and the optional type parameter
    is a sqlalchemy.types.TypeEngine object which indicates bind-parameter and result-set translation for
    this bind parameter."""
    if isinstance(key, schema.Column):
        return BindParamClause(key.name, value, type=key.type)
    else:
        return BindParamClause(key, value, type=type)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号