identity generator progress
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
|
||||
#include "matador/utils/basic_types.hpp"
|
||||
|
||||
[[maybe_unused]] const matador::sql::dialect *get_dialect()
|
||||
{
|
||||
[[maybe_unused]] const matador::sql::dialect *get_dialect() {
|
||||
using namespace matador::sql;
|
||||
const static dialect d = dialect_builder::builder()
|
||||
.create()
|
||||
@@ -13,16 +12,17 @@
|
||||
return "$" + std::to_string(index);
|
||||
})
|
||||
.with_token_replace_map({
|
||||
{dialect_token::BeginBinaryData, "'\\x"}
|
||||
})
|
||||
{dialect_token::BeginBinaryData, "'\\x"},
|
||||
{dialect_token::Identity, "GENERATED BY DEFAULT AS IDENTITY"}
|
||||
})
|
||||
.with_data_type_replace_map({
|
||||
{matador::utils::basic_type::Int8, "SMALLINT"},
|
||||
{matador::utils::basic_type::UInt8, "SMALLINT"},
|
||||
{matador::utils::basic_type::Float, "REAL"},
|
||||
{matador::utils::basic_type::Double, "DOUBLE PRECISION"},
|
||||
{matador::utils::basic_type::Time, "TIME(6)"},
|
||||
{matador::utils::basic_type::DateTime, "TIMESTAMPTZ(6)"},
|
||||
{matador::utils::basic_type::Blob, "BYTEA"}
|
||||
{matador::utils::basic_type::Int8, "SMALLINT"},
|
||||
{matador::utils::basic_type::UInt8, "SMALLINT"},
|
||||
{matador::utils::basic_type::Float, "REAL"},
|
||||
{matador::utils::basic_type::Double, "DOUBLE PRECISION"},
|
||||
{matador::utils::basic_type::Time, "TIME(6)"},
|
||||
{matador::utils::basic_type::DateTime, "TIMESTAMPTZ(6)"},
|
||||
{matador::utils::basic_type::Blob, "BYTEA"}
|
||||
})
|
||||
.with_bool_strings("TRUE", "FALSE")
|
||||
.with_default_schema_name("public")
|
||||
|
||||
Reference in New Issue
Block a user