Changeset 19062


Ignore:
Timestamp:
07/18/18 16:25:56 (6 years ago)
Author:
tbretz
Message:
Allow to overwrite the default engine (not recommended)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/root2sql.cc

    r18961 r19062  
    5555        ("max",            var<int64_t>(int64_t(0)),  "Maximum number of events to process (0: all), mainly for test purpose")
    5656        ("no-insert",      po_switch(),               "Does not insert any data into the table")
     57        ("engine",         var<string>("MyISAM"),     "Database engine to be used when a new table is created")
    5758        ("print-branches", po_switch(),               "Print the branches found in the tree")
    5859        ("print-leaves",   po_switch(),               "Print the leaves found in the tree (this is what is processed)")
     
    131132        "\n"
    132133        "All columns are created as NOT NULL as default and the table is created as "
    133         "MyISAM.\n"
     134        "MyISAM (default).\n"
    134135        "\n"
    135136        "For debugging purpose, or to just create or drop a table, the final insert "
     
    268269    const bool noinsert          = conf.Get<bool>("no-insert");
    269270
     271    const string engine          = conf.Get<string>("engine");
     272
    270273    const bool print_branches    = conf.Get<bool>("print-branches");
    271274    const bool print_leaves      = conf.Get<bool>("print-leaves");
     
    426429        ")\n"
    427430        "DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci\n"
    428         "ENGINE=MyISAM\n"
     431        "ENGINE="+engine+"\n"
    429432        "COMMENT='created by "+conf.GetName()+"'\n";
    430433
Note: See TracChangeset for help on using the changeset viewer.