40 Commits

Author SHA1 Message Date
Ivan Ukhov
961dad0f65 Extend the example 2015-07-04 09:27:13 -04:00
Ivan Ukhov
d94275417a Rename Database to Connection 2015-07-04 08:53:26 -04:00
Ivan Ukhov
fa4ceac00a Rename success! to ok! 2015-06-19 20:34:02 -04:00
Ivan Ukhov
d8835fec8c Move a macro 2015-06-19 20:23:12 -04:00
Ivan Ukhov
827386c588 Remove an obsolete crate attribute 2015-06-19 20:18:07 -04:00
Ivan Ukhov
0d079a05c6 Use the same name for type parameters 2015-06-19 13:15:42 -04:00
Ivan Ukhov
7441967fbc Eliminate Binding; introduce Parameter 2015-06-19 11:31:29 -04:00
Ivan Ukhov
56c36f7ddc Remove unnecessary uses in the examples 2015-06-19 09:21:31 -04:00
Ivan Ukhov
dfe55f4953 Simplify in-memory examples 2015-06-19 07:51:34 -04:00
Tomoki Aonuma
423ecac84a sqlite::open() takes an AsRef<Path> value
Now we can pass either a string or a Path to it, just like to
std::fs::File::open().
2015-06-19 13:26:15 +09:00
Ivan Ukhov
610aea0221 Update the usage example 2015-06-14 11:33:55 -04:00
Ivan Ukhov
40e08d5b97 Rename raw to ffi 2015-06-12 14:23:18 -04:00
Ivan Ukhov
f776e1daf6 Adjust the description of Database 2015-06-12 14:21:29 -04:00
Ivan Ukhov
d036ddc071 Use From for convertin codes to error kinds 2015-06-08 18:19:15 -04:00
Ivan Ukhov
985cde931f Treat SQLite result codes as error kinds 2015-06-08 18:05:17 -04:00
Ivan Ukhov
bde720bddc Refactor the error handling 2015-06-08 17:43:31 -04:00
Ivan Ukhov
a5c0234aa1 Clean up the busy callback 2015-06-08 14:52:13 -04:00
Ivan Ukhov
4f97dda5d7 Split execute into instruct and iterate 2015-06-08 13:27:07 -04:00
Ivan Ukhov
81dcb73b8f Refine set_busy_handler 2015-06-08 11:36:50 -04:00
Ivan Ukhov
1f0db50312 Move a test from /tests to /src 2015-06-08 09:37:44 -04:00
Ivan Ukhov
a8396a0d1e Export BusyCallback 2015-06-08 09:22:37 -04:00
Ivan Ukhov
475fa14c0c Drop the lifetime parameter of Database 2015-06-01 11:39:22 -04:00
Ivan Ukhov
2cdf79bca0 Fix the lifetime binding of Database::open 2015-06-01 11:23:02 -04:00
Ivan Ukhov
d549a64686 Get rid of sqlite3_errstr 2015-05-29 16:41:34 -04:00
Ivan Ukhov
ef550d6d75 Return error message from SQLite 2015-05-29 14:33:39 -04:00
Ivan Ukhov
72ff84e686 Refactor Error handling 2015-05-29 14:04:39 -04:00
Ivan Ukhov
1d16210de7 Move Error and Result from lib.rs to separate modules 2015-05-29 13:50:05 -04:00
Ivan Ukhov
e56b3891bc A few minor adjustments 2015-05-29 13:34:48 -04:00
Ivan Ukhov
ae0a12444b Implement column reading 2015-05-29 13:08:02 -04:00
Ivan Ukhov
f7f9af43ed Implement prepared statements 2015-05-29 11:24:01 -04:00
Ivan Ukhov
1dfeee881b Move Database into a separate file 2015-05-29 09:44:06 -04:00
Ivan Ukhov
e9d7efdf77 Describe ExecuteCallback 2015-05-29 09:29:45 -04:00
Ivan Ukhov
d17b371c4d Make Database::execute accept None 2015-05-29 09:04:00 -04:00
Ivan Ukhov
056b5df6d4 Implement Database::execute 2015-05-28 22:40:15 -04:00
Ivan Ukhov
dc41fa1f68 Add a comment 2015-05-28 19:21:48 -04:00
Ivan Ukhov
af29001883 Add a comment 2015-05-28 19:21:25 -04:00
Ivan Ukhov
4431d24fd7 Adjust a comment 2015-05-28 19:20:58 -04:00
Ivan Ukhov
6ff668acd0 Implement Database::open 2015-05-28 19:19:08 -04:00
Ivan Ukhov
c92519df56 Add primary result codes 2015-05-28 18:36:05 -04:00
Ivan Ukhov
e18b7f57ac Initialize the project 2015-05-28 17:21:43 -04:00