基本的に展開して、
%ES_HOME%/bin/elasticsearch.bat
を実行すれば起動するようになる。
########################################### | |
# MongoDB Sample | |
# Driver:https://github.com/mongodb/mongo-csharp-driver/releases | |
# MongoDB Bson Namespace : http://api.mongodb.org/csharp/current/ | |
########################################### | |
Add-Type -Path "C:\mongodb-win32-x86_64-2008plus-2.4.6\CSharpDriver-1.9\MongoDB.Bson.dll" | |
Add-Type -Path "C:\mongodb-win32-x86_64-2008plus-2.4.6\CSharpDriver-1.9\MongoDB.Driver.dll" | |
$dbName = "test" |
# classutil.ps1 | |
# source from http://mojibake.seesaa.net/article/56484188.html | |
# class to cls | |
# var to mem | |
# def to func | |
$global:__cls__=@{} | |
# this function is not worked. why... | |
function global:cls([string] $name, [ScriptBlock] $definition) |
[void][reflection.assembly]::LoadWithPartialName("System.Data.OracleClient") | |
$ConnectionString = "Data Source=/******/;User ID=/*****/;Password=/*****/;Integrated Security=false;" | |
$OraConn = New-Object System.Data.OracleClient.OracleConnection($ConnectionString) | |
$dtSet = New-Object System.Data.DataSet | |
$strSQL = "SELECT * FROM EMP" | |
#Make Data Adapter |