Lines Matching refs:limit
12 pub fn limit(&self, limit: Limit) -> i32 { in limit() method
14 unsafe { ffi::sqlite3_limit(c.db(), limit as c_int, -1) } in limit()
19 pub fn set_limit(&self, limit: Limit, new_val: i32) -> i32 { in set_limit()
21 unsafe { ffi::sqlite3_limit(c.db(), limit as c_int, new_val) } in set_limit()
34 assert_eq!(1024, db.limit(Limit::SQLITE_LIMIT_LENGTH)); in test_limit()
37 assert_eq!(1024, db.limit(Limit::SQLITE_LIMIT_SQL_LENGTH)); in test_limit()
40 assert_eq!(64, db.limit(Limit::SQLITE_LIMIT_COLUMN)); in test_limit()
43 assert_eq!(256, db.limit(Limit::SQLITE_LIMIT_EXPR_DEPTH)); in test_limit()
46 assert_eq!(32, db.limit(Limit::SQLITE_LIMIT_COMPOUND_SELECT)); in test_limit()
49 assert_eq!(32, db.limit(Limit::SQLITE_LIMIT_FUNCTION_ARG)); in test_limit()
52 assert_eq!(2, db.limit(Limit::SQLITE_LIMIT_ATTACHED)); in test_limit()
55 assert_eq!(128, db.limit(Limit::SQLITE_LIMIT_LIKE_PATTERN_LENGTH)); in test_limit()
58 assert_eq!(99, db.limit(Limit::SQLITE_LIMIT_VARIABLE_NUMBER)); in test_limit()
63 assert_eq!(32, db.limit(Limit::SQLITE_LIMIT_TRIGGER_DEPTH)); in test_limit()
69 assert_eq!(2, db.limit(Limit::SQLITE_LIMIT_WORKER_THREADS)); in test_limit()