Python has the advantage of dynamic typing, and Go runtime type
assertions and variadics. Their interfaces probably aren't /too/ good
for inspiration, especially Python's.

See rust-postgres (https://github.com/sfackler/rust-postgres) for an
existing DB binding. I think it's fairly idiomatic and any DB API
should draw inspiration from it. It leverages trait objects, though
it's unclear that that can be generic. Personally I've never really
been a fan of generic SQL APIs. Unless they leverage intense amounts
of magic (Entity Framework, SQLAlchemy), I find they end up being
crippled (luasql) or fairly uses (python's dbapi).

Maybe that's just me.

On Wed, Dec 11, 2013 at 9:24 AM, Gaetan <[email protected]> wrote:
> I'll be glad volunteering for this task, however I'm new in rust so I may
> need to have some mentoring for this...
>
> I would be inspired by the python interface:
> https://pypi.python.org/pypi/MySQL-python/1.2.4
>
> -----
> Gaetan
>
>
>
> 2013/12/11 John Mija <[email protected]>
>>
>> Before of release 1.0, it would be very good if it's added to the package
>> standard a generic interface to be implemented by the packages of SQL
>> drivers.
>>
>> As example, see packages "database/sql" and "database/sql/driver" in the
>> Go's library:
>>
>> http://golang.org/pkg/database/
>> _______________________________________________
>> Rust-dev mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/rust-dev
>
>
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to