IreneKnapp / direct-sqlite

MIT License
35 stars 54 forks source link

direct-sqlite should provide lower-level access for those who need it #11

Closed joeyadams closed 12 years ago

joeyadams commented 12 years ago

Currently, direct-sqlite contains FFI bindings, performs marshaling, and throws exceptions. This does not give some users enough control:

I propose we introduce the following alternative APIs:

Database.SQLite3 would use Database.SQLite3.Direct, and Database.SQLite3.Direct would use Database.SQLite3.Bindings.

I've already implemented Database.SQLite3.Bindings, and implemented Database.SQLite3 in terms of it. I would submit a pull request, but I'd rather wait until I'm done romping around in Database.SQLite3, to avoid clashing with other contributions. I plan to implement Database.SQLite3.Direct pretty soon.

Anyone have an issue with this? Thanks for the input.

nurpax commented 12 years ago

The changes to move the C low-levels into SQLite3.Bindings looks good. I like the c_sqlite3* naming convention, it makes it easier to read the code for me.

nurpax commented 12 years ago

can't this be closed now?