Skip to content

Commit

Permalink
Move to a pure Ruby version since native C libs aren't available for …
Browse files Browse the repository at this point in the history
…most platforms
  • Loading branch information
mattbauer committed Jan 22, 2009
1 parent 584b159 commit e0361e4
Show file tree
Hide file tree
Showing 35 changed files with 829 additions and 442 deletions.
4 changes: 0 additions & 4 deletions Rakefile
Expand Up @@ -14,9 +14,6 @@ task :default => "test"
desc "Clean"
task :clean do
include FileUtils
Dir.chdir('ext') do
rm(Dir.glob('*') - ['extconf.rb'])
end
rm_rf 'pkg'
end

Expand All @@ -39,4 +36,3 @@ namespace :doc do
rdoc.options << "--line-numbers" << "--inline-source"
end
end

218 changes: 0 additions & 218 deletions ext/conn.c

This file was deleted.

33 changes: 0 additions & 33 deletions ext/conn.h

This file was deleted.

14 changes: 0 additions & 14 deletions ext/extconf.rb

This file was deleted.

44 changes: 0 additions & 44 deletions ext/vertica.c

This file was deleted.

19 changes: 0 additions & 19 deletions ext/vertica.h

This file was deleted.

17 changes: 17 additions & 0 deletions lib/vertica.rb
@@ -0,0 +1,17 @@
module Vertica

class Error < StandardError

class ConnectionError < Error; end

class MessageError < Error; end

end

PROTOCOL_VERSION = 3 << 16

end

require 'vertica/column'
require 'vertica/result'
require 'vertica/connection'
11 changes: 11 additions & 0 deletions lib/vertica/Notice.rb
@@ -0,0 +1,11 @@
module Vertica
class Notice
attr_reader :field_type
attr_reader :field_value

def initialize(field_type, field_value)
@field_type = field_type
@field_value = field_value
end
end
end

0 comments on commit e0361e4

Please sign in to comment.