-
Notifications
You must be signed in to change notification settings - Fork 0
Install
Masanobu Shimura edited this page Apr 8, 2015
·
6 revisions
現在使用可能なデータベースは、Postgresql,Mysql,Sqlserverです。
それぞれ下記のExampleが用意してありますので、最初はそれで試される事をお薦めします。
まずDBFluteエンジンのgo 用を下記ページからDownloadし、 mydbfluteフォルダーの中に、Versionのフォルダー以下に解凍して下さい。
下記DBFluteのDBFluteクライアントのリンクから作成して下さい。
なお この中の _project.bat(sh) の set DBFLUTE_HOME=が上記DBFluteエンジンのフォルダーになっている必要があります。
github.com/cihub/seelog log
github.com/djimenez/iconv-go 文字種変換
github.com/lib/pq Postgresql Driver (pq.NullTimeを使用のため他のDB使用時も必須)
github.com/go-sql-driver/mysql Mysql Driver
github.com/denisenkom/go-mssqldb Sql Server Driver
basicInfoMap.dfpropのGo用追加設定
goOutputDirectoryにDBFluteクライアントからの相対パスを設定して下さい。
goPackageBaseを指定して下さい。 このadf以下に作成されます。
参考 adf: autogenerated dbflute
# The basic information for Go version.
; goOutputDirectory = ../src
; goPackageBase = dbflute
outsideSqlDefinitionMap.dfpropの設定
; sqlDirectory = ..\src\dbflute\adf\bhv\sql