# File lib/activerdf_redland/redland.rb, line 50
50:         def initialize_postgresql(params = {})
51:     # author: Richard Dale
52:                 type = 'postgresql'
53:                 name = params[:name]
54: 
55:                 options = []
56:                 options << "new='#{params[:new]}'" if params[:new]
57:     options << "bulk='#{params[:bulk]}'" if params[:bulk]
58:     options << "merge='#{params[:merge]}'" if params[:merge]
59:                 options << "host='#{params[:host]}'" if params[:host]
60:                 options << "database='#{params[:database]}'" if params[:database]
61:                 options << "user='#{params[:user]}'" if params[:user]
62:                 options << "password='#{params[:password]}'" if params[:password]
63:                 options << "port='#{params[:port]}'" if params[:port]
64: 
65:                 
66:                 $activerdflog.info "RedlandAdapter: initializing with type: #{type} name: #{name} options: #{options.join(',')}"
67:                 
68:                 begin
69:                         @store = Redland::TripleStore.new(type, name, options.join(','))
70:                         @model = Redland::Model.new @store
71:                         @reads = true
72:                         @writes = true
73:                 rescue Redland::RedlandError => e
74:                         raise ActiveRdfError, "could not initialise Redland database: #{e.message}"
75:                 end
76:         end