about summary refs log tree commit diff stats
path: root/tools/util/godot_scene.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-26 18:35:06 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-26 18:35:06 -0400
commit1b68ed2e63e037d34caec8ff3b2d939a44c12d19 (patch)
tree7742927e6a3064a6369d7c7903818bb9cc442516 /tools/util/godot_scene.cpp
parenta9b8ccb7b52b8e2090c6c48f2dbcff16afde9dc3 (diff)
downloadlingo2-archipelago-1b68ed2e63e037d34caec8ff3b2d939a44c12d19.tar.gz
lingo2-archipelago-1b68ed2e63e037d34caec8ff3b2d939a44c12d19.tar.bz2
lingo2-archipelago-1b68ed2e63e037d34caec8ff3b2d939a44c12d19.zip
Added the_tree
Diffstat (limited to 'tools/util/godot_scene.cpp')
0 files changed, 0 insertions, 0 deletions
ghlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef DATABASE_H_0B0A47D2
#define DATABASE_H_0B0A47D2

#include <string>
#include <exception>
#include <list>

struct sqlite3;

namespace verbly {
  namespace generator {

    class field;

    class sqlite3_error : public std::exception {
    public:

      sqlite3_error(const std::string& what, const std::string& db_err);

      const char* what() const noexcept override;
      const char* db_err() const noexcept;

    private:
      std::string what_;
      std::string db_err_;

    };

    class database {
    public:

      // Constructor

      explicit database(std::string path);

      // Disable copying

      database(const database& other) = delete;
      database& operator=(const database& other) = delete;

      // Move constructor and move assignment

      database(database&& other);
      database& operator=(database&& other);

      // Swap

      friend void swap(database& first, database& second);

      // Destructor

      ~database();

      // Actions

      void runQuery(std::string query);

      void insertIntoTable(std::string table, std::list<field> fields);

    private:

      database()
      {
      }

      sqlite3* ppdb_ = nullptr;

    };

  };
};

#endif /* end of include guard: DATABASE_H_0B0A47D2 */