"WHERE remote_id = ? AND lease_addr BETWEEN ? AND ? "
"ORDER BY lease_addr "
"LIMIT ?"},
+ {MySqlLeaseMgr::COUNT_RELAY_ID6,
+ "SELECT COUNT(*) FROM lease6_relay_id"},
+ {MySqlLeaseMgr::COUNT_REMOTE_ID6,
+ "SELECT COUNT(*) FROM lease6_remote_id"},
} }; // tagged_statements
} // namespace
GET_REMOTE_ID6, // Get lease6_remote_id entries
GET_RELAY_ID6_LINK, // Get lease6_relay_id entries by link
GET_REMOTE_ID6_LINK, // Get lease6_remote_id entries by link
+ COUNT_RELAY_ID6, // Count the lease6_relay_id number of entries
+ COUNT_REMOTE_ID6, // Count the lease6_remote_id number of entries
NUM_STATEMENTS // Number of statements
};
"ORDER BY lease_addr "
"LIMIT $4"},
+ // COUNT_RELAY_ID6
+ { 0, { OID_NONE },
+ "count_relay_id6",
+ "SELECT COUNT(*) FROM lease6_relay_id"},
+
+ // COUNT_REMOTE_ID6
+ { 0, { OID_NONE },
+ "count_remote_id6",
+ "SELECT COUNT(*) FROM lease6_remote_id"},
+
// End of list sentinel
{ 0, { 0 }, NULL, NULL }
};
GET_REMOTE_ID6, // Get lease6_remote_id entries
GET_RELAY_ID6_LINK, // Get lease6_relay_id entries by link
GET_REMOTE_ID6_LINK, // Get lease6_remote_id entries by link
+ COUNT_RELAY_ID6, // Count the lease6_relay_id number of entries
+ COUNT_REMOTE_ID6, // Count the lease6_remote_id number of entries
NUM_STATEMENTS // Number of statements
};