gda 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -15
- data/ext/gda/extconf.rb +7 -3
- data/lib/gda/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4298536cd642a7d8032fd0e324e0c34d814ff1182175d754ca541b86bb1b640
|
4
|
+
data.tar.gz: b7eea0346144b0abebf55d42a25eb514fbbe0a9f81b37bfd821ed85d2327a448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a368a33d320ca6f545f9f8daab1acac1ea0eaa58a4a4e439882364880815d1ce9512c265a8da0c9bf5bdb08c7b17d6b36fd380b61503705ae2dd0475b62d4636
|
7
|
+
data.tar.gz: 1f6bddd8600d2438844da0a606e0e85accc76c0757424099b11506e1e040b715944a072560827bd577dda3a231c526315172d6bb2f9b470f55ba0ecfa844d150
|
data/README.md
CHANGED
@@ -1,40 +1,44 @@
|
|
1
|
-
|
1
|
+
# gda
|
2
2
|
|
3
3
|
* http://github.com/tenderlove/gda
|
4
4
|
|
5
|
-
|
5
|
+
## DESCRIPTION:
|
6
6
|
|
7
7
|
An SQL parser. Wraps libgda in a loving embrace to give you a ruby level SQL
|
8
8
|
parser.
|
9
9
|
|
10
|
-
|
10
|
+
## SYNOPSIS:
|
11
11
|
|
12
|
-
|
12
|
+
```ruby
|
13
|
+
parser = GDA::SQL::Parser.new
|
13
14
|
|
14
|
-
|
15
|
+
stmt = parser.parse 'SELECT * FROM FOO WHERE 1 = 1 GROUP BY omg HAVING omg(id) < 2 ORDER BY foo, bar LIMIT 50 OFFSET 2'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
stmt.ast.each do |node|
|
18
|
+
p node
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
+
puts stmt.ast.to_dot
|
22
|
+
```
|
21
23
|
|
22
|
-
|
24
|
+
## HACKING
|
23
25
|
|
24
26
|
$ brew install libgda
|
25
27
|
$ gem install hoe rake-compiler
|
26
28
|
$ rake
|
27
29
|
|
28
|
-
== INSTALL:
|
29
30
|
|
30
|
-
|
31
|
-
* gem install gda
|
31
|
+
## INSTALL
|
32
32
|
|
33
|
-
|
33
|
+
|
34
|
+
$ brew install libgda
|
35
|
+
$ gem install gda
|
36
|
+
|
37
|
+
## LICENSE
|
34
38
|
|
35
39
|
(The MIT License)
|
36
40
|
|
37
|
-
Copyright (c) 2012-
|
41
|
+
Copyright (c) 2012-2023 Aaron Patterson
|
38
42
|
|
39
43
|
Permission is hereby granted, free of charge, to any person obtaining
|
40
44
|
a copy of this software and associated documentation files (the
|
data/ext/gda/extconf.rb
CHANGED
@@ -14,10 +14,14 @@ the dependency.
|
|
14
14
|
MSG
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
available_libgda_pkg_config = nil
|
18
|
+
%w(5.0 6.0).each do |pkg_config_version|
|
19
|
+
pkg_config "libgda-#{pkg_config_version}"
|
20
|
+
available_libgda_pkg_config = find_header('libgda/sql-parser/gda-sql-parser.h')
|
21
|
+
break if available_libgda_pkg_config
|
22
|
+
end
|
19
23
|
|
24
|
+
asplode("libgda") unless available_libgda_pkg_config
|
20
25
|
create_makefile 'gda'
|
21
26
|
|
22
|
-
|
23
27
|
# :startdoc:
|
data/lib/gda/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-03-20 00:00:00.000000000 Z
|
@@ -44,7 +44,7 @@ homepage: http://github.com/tenderlove/gda
|
|
44
44
|
licenses:
|
45
45
|
- MIT
|
46
46
|
metadata: {}
|
47
|
-
post_install_message:
|
47
|
+
post_install_message:
|
48
48
|
rdoc_options:
|
49
49
|
- "--main"
|
50
50
|
- README.rdoc
|
@@ -61,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 2.5.0
|
63
63
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
64
|
+
rubygems_version: 3.0.3.1
|
65
|
+
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: An SQL parser
|
68
68
|
test_files: []
|