Skip to content

Using default values when inserting records #1313

Answered by ShaharHD
ShaharHD asked this question in Q&A
Discussion options

You must be logged in to vote

Complete solution FFR

#include <fmt/core.h>
#include <memory>
#include <optional>
#include <spdlog/spdlog.h>
#include <sqlite_orm/sqlite_orm.h>
#include <string>

#include <optional>
#include <sqlite_orm/sqlite_orm.h>
#include <string>

struct Personnel {
  public:
    std::int32_t               id;
    std::string                name;
    std::int32_t               age;
    std::string                address;
    std::string                designation;
    std::optional<std::string> createdAt;
    std::uint64_t              bigNumber;

    inline static const auto columns()
    {
        static const auto columns =
            sqlite_orm::columns(&Personnel::name, &Personnel::age, &Perso…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@ShaharHD
Comment options

@fnc12
Comment options

@ShaharHD
Comment options

@ShaharHD
Comment options

Answer selected by ShaharHD
@fnc12
Comment options

@ShaharHD
Comment options

@fnc12
Comment options

@ShaharHD
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants