| 16 | ) |
| 17 | |
| 18 | type SQLiteIPList struct { |
| 19 | db *dbs.DB |
| 20 | |
| 21 | itemTableName string |
| 22 | versionTableName string |
| 23 | |
| 24 | deleteExpiredItemsStmt *dbs.Stmt |
| 25 | deleteItemStmt *dbs.Stmt |
| 26 | insertItemStmt *dbs.Stmt |
| 27 | selectItemsStmt *dbs.Stmt |
| 28 | selectMaxItemVersionStmt *dbs.Stmt |
| 29 | |
| 30 | selectVersionStmt *dbs.Stmt |
| 31 | updateVersionStmt *dbs.Stmt |
| 32 | |
| 33 | cleanTicker *time.Ticker |
| 34 | |
| 35 | dir string |
| 36 | |
| 37 | isClosed bool |
| 38 | } |
| 39 | |
| 40 | func NewSQLiteIPList() (*SQLiteIPList, error) { |
| 41 | var db = &SQLiteIPList{ |
nothing calls this directly
no outgoing calls
no test coverage detected