aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/sqlite.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-17 01:00:56 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-17 01:00:56 +0200
commit7a9687ba30d579bc51e0aaf3193e0ab8d86400d2 (patch)
tree3602fae070390a26f269e8071200d39e41eeb1b5 /src/libstore/sqlite.hh
parent3b489e8843f4730d4dd0753453ccb1c21429b0e9 (diff)
SQLiteStmt: Use std::string_view
Diffstat (limited to 'src/libstore/sqlite.hh')
-rw-r--r--src/libstore/sqlite.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/sqlite.hh b/src/libstore/sqlite.hh
index fd04c9b07..661a384ef 100644
--- a/src/libstore/sqlite.hh
+++ b/src/libstore/sqlite.hh
@@ -54,7 +54,7 @@ struct SQLiteStmt
~Use();
/* Bind the next parameter. */
- Use & operator () (const std::string & value, bool notNull = true);
+ Use & operator () (std::string_view value, bool notNull = true);
Use & operator () (const unsigned char * data, size_t len, bool notNull = true);
Use & operator () (int64_t value, bool notNull = true);
Use & bind(); // null