WIP Core client library and integration test framework.

@alainjobart @guoliang100 @sougou 
Includes -
* DatabaseContext as the primary entry point.
* Base classes that control routing and cursor creation.
* Sql builder constructs.
* Integration test framework.
* Simple end to end test for unsharded keyspace and table.
Next - 
* Examples and test for range-sharding.
* Failure/error cases.
* Examples with db operation decorators.

Will do.

On Tue, Dec 23, 2014 at 3:02 PM, Liang <notifications@github.com> wrote:

> In py/vtdb/db_object.py
> <https://github.com/youtube/vitess/pull/269#discussion-diff-22239935>:
>
> > +                                                           where_column_value_pairs,
> > +                                                           order_by=order_by,
> > +                                                           group_by=group_by,
> > +                                                           limit=limit,
> > +                                                           **kwargs)
> > +
> > +    rowcount = cursor.execute(query, bind_vars)
> > +    rows = cursor.fetchall()
> > +    return [sql_builder.DBRow(columns_list, row) for row in rows]
> > +
> > +  @db_class_method
> > +  def insert(class_, cursor, **bind_variables):
> > +    values_clause, bind_list = sql_builder.build_values_clause(
> > +        class_.columns_list,
> > +        bind_variables)
> > +    query = 'INSERT INTO %s (%s) VALUES (%s)' % (class_.table_name,
>
> Also build insert query in sql_builder?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/youtube/vitess/pull/269/files#r22239935>.
>