{"id":498,"date":"2019-07-18T09:45:52","date_gmt":"2019-07-18T09:45:52","guid":{"rendered":"http:\/\/www.hammerdb.com\/blog\/?p=498"},"modified":"2019-07-18T11:06:32","modified_gmt":"2019-07-18T11:06:32","slug":"how-to-add-your-database-to-hammerdb-pt4-commit-changes-and-pull-request","status":"publish","type":"post","link":"https:\/\/www.hammerdb.com\/blog\/uncategorized\/how-to-add-your-database-to-hammerdb-pt4-commit-changes-and-pull-request\/","title":{"rendered":"How to add your database to HammerDB &#8211; Pt4 Commit changes and pull request"},"content":{"rendered":"\n<p>In parts 1 to 3 of this series we have gone through the steps of taking the HammerDB code and adding support for a new database.&nbsp; At the moment these changes are on the local development system. in summary we have modified database.xml in the config directory, added a new mariadb.xml file, created a mariadb directory in the src directory and then added and updated the metrics, options, oltp, olap and transaction counter files for our new database.&nbsp; So the next stage is to add these changes:<\/p>\n<pre>~\/HammerDB-Fork\/HammerDB$ git add .<br>~\/HammerDB-Fork\/HammerDB$ git status<br>On branch 54<br>Changes to be committed:<br>(use \"git reset HEAD ...\" to unstage)<br><br>modified: config\/database.xml<br>new file: config\/mariadb.xml<br>new file: src\/mariadb\/mariamet.tcl<br>new file: src\/mariadb\/mariaolap.tcl<br>new file: src\/mariadb\/mariaoltp.tcl<br>new file: src\/mariadb\/mariaopt.tcl<br>new file: src\/mariadb\/mariaotc.tcl<\/pre>\n<p>and commit then to the branch we are working on.<\/p>\n<pre>~\/HammerDB-Fork\/HammerDB$ git commit -m \"Template for adding MariaDB as separate database\"<br>[54 8ababeb] Template for adding MariaDB as separate database<br>7 files changed, 3471 insertions(+)<br>create mode 100755 config\/mariadb.xml<br>create mode 100755 src\/mariadb\/mariamet.tcl<br>create mode 100755 src\/mariadb\/mariaolap.tcl<br>create mode 100755 src\/mariadb\/mariaoltp.tcl<br>create mode 100755 src\/mariadb\/mariaopt.tcl<br>create mode 100755 src\/mariadb\/mariaotc.tcl<\/pre>\n<p>They can then be pushed to the repository.<\/p>\n<pre>~\/HammerDB-Fork\/HammerDB$ git push origin 54<br>...<br>remote: Resolving deltas: 100% (4\/4), completed with 4 local objects.<br>remote: <br>remote: Create a pull request for '54' on GitHub by visiting:<br>remote: https:\/\/github.com\/sm-shaw\/HammerDB\/pull\/new\/54<br>remote: <br>To https:\/\/github.com\/sm-shaw\/HammerDB.git<br>* [new branch] 54 -&gt; 54<\/pre>\n<p>If you think you are ready for the changes for your additional database to be included in HammerDB then you should open a pull request.&nbsp; In this example there is more work to do and therefore we will not be opening the pull request at this point in time.<\/p>\n<p><a href=\"https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2019\/07\/maria10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-505\" src=\"https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2019\/07\/maria10.png\" alt=\"\" width=\"796\" height=\"170\" srcset=\"https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2019\/07\/maria10.png 796w, https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2019\/07\/maria10-300x64.png 300w, https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2019\/07\/maria10-768x164.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>At the same time as opening the pull request you should update the Issue you opened in part 1 to discuss the changes you made.&nbsp; In particular if there are new binaries required to support both Linux and Windows then this will be necessary for discussion to support the new binaries in a future release.<\/p>\n<p>Finally bear in mind that the pull request to add a new database will be very much the start as opposed to the end of the process of adding a database.&nbsp; As users begin to use your contributions to test your chosen database they will inevitably have questions for support therefore you will be required to provide assistance and respond accordingly to any questions that they may have.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In parts 1 to 3 of this series we have gone through the steps of taking the HammerDB code and adding support for a new database.&nbsp; At the moment these changes are on the local development system. in summary we have modified database.xml in the config directory, added a new mariadb.xml file, created a mariadb &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hammerdb.com\/blog\/uncategorized\/how-to-add-your-database-to-hammerdb-pt4-commit-changes-and-pull-request\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to add your database to HammerDB &#8211; Pt4 Commit changes and pull request&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"ppma_author":[5],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"authors":[{"term_id":5,"user_id":2,"is_guest":0,"slug":"hammerdb","display_name":"HammerDB","avatar_url":{"url":"https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2018\/10\/logo-white.png","url2x":"https:\/\/www.hammerdb.com\/blog\/wp-content\/uploads\/2018\/10\/logo-white.png"},"author_category":"","user_url":"http:\/\/www.hammerdb.com","last_name":"","first_name":"","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":7,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":529,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/posts\/498\/revisions\/529"}],"wp:attachment":[{"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/tags?post=498"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.hammerdb.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}