摘要:
http://www.sqlite.org/c3ref/busy_handler.html留着自己看的。Register A Callback To Handle SQLITE_BUSY Errors注册一个回调函数处理SQLITE_BUSY错误int sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*);This routine sets a callback function that might be invoked whenever an attempt is made to open a database table tha 阅读全文
摘要:
以下内容摘自《SQLITE权威指南》,下载地址http://download.csdn.net/detail/cxjchen/5643391 SQLITE的锁 在SQLite中,锁和事务是紧密联系的。为了有效地使用事务,需要了解一些关于如何加锁的知识。 SQLite采用粗放型的锁。当一个连接要写数据库,所有其它的连接被锁住,直到写连接结束了它的事务。SQLite有一个加锁表,来帮助... 阅读全文
摘要:
重写X509TrustManager 1 private static TrustManager myX509TrustManager = new X509TrustManager() { 2 3 @Override 4 public X509Certificate[] getAcceptedIssuers() { 5 return null; 6 } 7 8 @Override 9 public void checkServerTrusted(X509Certificate[] chain, String authTy... 阅读全文