77 Commits

Author SHA1 Message Date
Ivan Ukhov
9df0978335 Use AsRef<str> instead of &str 2015-07-31 16:05:52 -04:00
Ivan Ukhov
e3222f050d Extend the example 2015-07-30 08:12:43 -04:00
Ivan Ukhov
ebbf073c82 Fix the handling of C strings 2015-07-27 11:38:54 -04:00
Ivan Ukhov
5f3753e691 Reduce the number of semicolons in the examples 2015-07-07 09:37:09 -04:00
Ivan Ukhov
557fbeb12d A minor adjustment 2015-07-07 09:33:39 -04:00
Ivan Ukhov
06b54cecb0 Make use of Option::take instead of mem::replace 2015-07-07 07:55:21 -04:00
Ivan Ukhov
0390d179d5 Adjust the example 2015-07-04 10:24:01 -04:00
Ivan Ukhov
883ce7dce3 Clean up SQL literals 2015-07-04 09:29:49 -04:00
Ivan Ukhov
961dad0f65 Extend the example 2015-07-04 09:27:13 -04:00
Ivan Ukhov
0572f80ed0 Adjust the documentation 2015-07-04 09:21:38 -04:00
Ivan Ukhov
d94275417a Rename Database to Connection 2015-07-04 08:53:26 -04:00
Ivan Ukhov
626c022106 Implement std::error::Error for Error 2015-07-04 08:42:03 -04:00
Ivan Ukhov
fa4ceac00a Rename success! to ok! 2015-06-19 20:34:02 -04:00
Ivan Ukhov
e9f6fc0f1a Adjust an error message 2015-06-19 20:24:34 -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
fad63fc9d0 Fix the signature of bind 2015-06-19 13:10:09 -04:00
Ivan Ukhov
28929e8f1b Document State 2015-06-19 13:03:54 -04:00
Ivan Ukhov
d05c9e5d85 Move State closer to Statement 2015-06-19 11:34:03 -04:00
Ivan Ukhov
cf80303a1d A minor adjustment 2015-06-19 11:33:11 -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
a31345da43 Introduce the edge feature for backward compatibility 2015-06-12 15:01:12 -04:00
Ivan Ukhov
37ae860747 A minor change 2015-06-12 14:34:57 -04:00
Ivan Ukhov
41803cc3ca Switch to {open, prepare, close}_v2 2015-06-12 14:34:50 -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
9d489564fc Make it compile using Rust nightly 2015-06-10 19:20:50 -04:00
Ivan Ukhov
64aa37f474 Give &strs instead of Strings to Database::process’ callback 2015-06-08 21:42:34 -04:00
Ivan Ukhov
d036ddc071 Use From for convertin codes to error kinds 2015-06-08 18:19:15 -04:00
Ivan Ukhov
15539354b4 Change the error kind when there is no code available 2015-06-08 18:11:37 -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
1fdedd03f9 Rename instruct to execute and iterate to process 2015-06-08 15:00:44 -04:00
Ivan Ukhov
e0e5d9198b Fix a comment 2015-06-08 14:58:05 -04:00
Ivan Ukhov
a8d74c2cbf Remove an inline 2015-06-08 14:54:32 -04:00
Ivan Ukhov
a5c0234aa1 Clean up the busy callback 2015-06-08 14:52:13 -04:00
Ivan Ukhov
fd9cf2b2d2 Eliminate a memory leak in iterate 2015-06-08 13:33:26 -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
159b22c159 Add a test for set_busy_handler 2015-06-08 09:43:13 -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
bfa3a976c8 Rename a couple of functions; add set_busy_timeout 2015-06-08 07:53:28 -04:00
Ivan Ukhov
2698514218 Rename statement to prepare_statement 2015-06-07 22:17:07 -04:00
Ivan Ukhov
87b237aa7d Add set_busy_handler 2015-06-07 22:15:59 -04:00