mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-28 07:35:52 +00:00
style: Put static before type (#2231)
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
void
|
||||
writeTxIndexExample(std::string const& hash, std::string const& txType)
|
||||
{
|
||||
auto static kINSERT_TX_INDEX_EXAMPLE = [this]() {
|
||||
static auto kINSERT_TX_INDEX_EXAMPLE = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
INSERT INTO {}
|
||||
@@ -96,7 +96,7 @@ public:
|
||||
std::optional<std::string>
|
||||
fetchTxTypeViaID(std::string const& hash, boost::asio::yield_context ctx)
|
||||
{
|
||||
auto static kFETCH_TX_TYPE = [this]() {
|
||||
static auto kFETCH_TX_TYPE = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
SELECT tx_type FROM {} WHERE hash = ?
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
std::optional<std::uint64_t>
|
||||
fetchTxIndexTableSize(boost::asio::yield_context ctx)
|
||||
{
|
||||
auto static kINSERT_TX_INDEX_EXAMPLE = [this]() {
|
||||
static auto kINSERT_TX_INDEX_EXAMPLE = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
SELECT COUNT(*) FROM {}
|
||||
@@ -168,7 +168,7 @@ public:
|
||||
void
|
||||
writeLedgerAccountHash(std::uint64_t sequence, std::string const& accountHash)
|
||||
{
|
||||
auto static kINSERT_LEDGER_EXAMPLE = [this]() {
|
||||
static auto kINSERT_LEDGER_EXAMPLE = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
INSERT INTO {}
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
std::optional<ripple::uint256>
|
||||
fetchAccountHashViaSequence(std::uint64_t sequence, boost::asio::yield_context ctx)
|
||||
{
|
||||
auto static kFETCH_ACCOUNT_HASH = [this]() {
|
||||
static auto kFETCH_ACCOUNT_HASH = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
SELECT account_hash FROM {} WHERE sequence = ?
|
||||
@@ -225,7 +225,7 @@ public:
|
||||
std::optional<std::uint64_t>
|
||||
fetchLedgerTableSize(boost::asio::yield_context ctx)
|
||||
{
|
||||
auto static kINSERT_LEDGER_EXAMPLE = [this]() {
|
||||
static auto kINSERT_LEDGER_EXAMPLE = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
SELECT COUNT(*) FROM {}
|
||||
@@ -280,7 +280,7 @@ public:
|
||||
std::optional<std::uint64_t>
|
||||
fetchDiffTableSize(boost::asio::yield_context ctx)
|
||||
{
|
||||
auto static kCOUNT_DIFF = [this]() {
|
||||
static auto kCOUNT_DIFF = [this]() {
|
||||
return handle_.prepare(fmt::format(
|
||||
R"(
|
||||
SELECT COUNT(*) FROM {}
|
||||
|
||||
Reference in New Issue
Block a user