Exemple #1
0
def update_venue_name(conn: sqlc.GenericConnection, slug: str,
                      name: str) -> sqlc.ReturnType[Optional[int]]:
    return conn.execute_one(UPDATE_VENUE_NAME, slug, name)
Exemple #2
0
def create_venue(conn: sqlc.GenericConnection,
                 arg: CreateVenueParams) -> sqlc.ReturnType[Optional[int]]:
    return conn.execute_one(CREATE_VENUE, arg.slug, arg.name, arg.city,
                            arg.spotify_playlist, arg.status, arg.statuses,
                            arg.tags)