activerecord-dsql-adapter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d5653142d403dfb1efc8e710f3f2e9cc72264bfdce1f0a21e0fb7f8d4ee316f
4
- data.tar.gz: f66eb457cedb77489ec8c761e022af67f9d68cac59cf6eb4db7c12851868592e
3
+ metadata.gz: 1ad2818119d3d7093a3ddd37e8931c729ce600b50ed12e5cf6596f0ffa81672e
4
+ data.tar.gz: bc006c7e000efa466b91e64a4aafae12eb4c9fa2094d3d476c6f2b729e0feee9
5
5
  SHA512:
6
- metadata.gz: 56ebe63d14994b848c165eb8a95844d51c182eca011578694a183883e36f3c6ef9ee75f5c8a982d056144baf5ab4264e016ed64d52dcee16b0654fa7022cc16e
7
- data.tar.gz: 1a81f168feff53852f0cc6c192e744f70dca091155ebdef87a92901104940d58a8568150560562998675dc745a62178d11eec513e6cb7aa48846dbbd015b935c
6
+ metadata.gz: aabca4cd463236250820fb6676c78b16aa2df30f0dd6fab4ee36bfbf003db58212ad44140177e1a7d0c3ad223a03131de94d754f559dfb6d1801a4dc1ed88d0a
7
+ data.tar.gz: 7ee6a43d1f0aa09cfb84006bc10b83277f8e6f64496f9af2a546940e7db57b39b6c39862dd941b5d70b5405700f3f801194a72caef23c233d4f17a65477f3859
checksums.yaml.gz.sig CHANGED
Binary file
@@ -35,12 +35,37 @@ module ActiveRecord
35
35
  end
36
36
  end
37
37
 
38
- def configure_connection
39
- # PostgreSQLAdapter sets a bunch of parameters here which DSQL doesn't support
38
+ # DSQL doesn't support serial or bigserial
39
+
40
+ def self.native_database_types # :nodoc:
41
+ @native_database_types ||= begin
42
+ types = NATIVE_DATABASE_TYPES.dup
43
+ types[:primary_key] = "bigint primary key"
44
+ types[:datetime] = types[datetime_type]
45
+ types
46
+ end
47
+ end
48
+
49
+ # DSQL doesn't support these parameters, but PostgreSQLAdapter always sets them in #configure_connection
50
+
51
+ def client_min_messages
52
+ nil
53
+ end
54
+
55
+ def client_min_messages=(value)
56
+ nil
57
+ end
58
+
59
+ def set_standard_conforming_strings
60
+ nil
40
61
  end
41
62
 
42
63
  # https://docs.aws.amazon.com/aurora-dsql/latest/userguide/working-with-postgresql-compatibility-unsupported-features.html
43
64
 
65
+ def supports_advisory_locks?
66
+ false
67
+ end
68
+
44
69
  def supports_views?
45
70
  false
46
71
  end
@@ -49,6 +74,14 @@ module ActiveRecord
49
74
  false
50
75
  end
51
76
 
77
+ def supports_foreign_keys?
78
+ false
79
+ end
80
+
81
+ def supports_exclusion_constraints?
82
+ false
83
+ end
84
+
52
85
  def supports_extensions?
53
86
  false
54
87
  end
@@ -56,6 +89,10 @@ module ActiveRecord
56
89
  def supports_index_sort_order?
57
90
  false
58
91
  end
92
+
93
+ def supports_json?
94
+ false
95
+ end
59
96
  end
60
97
  end
61
98
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-dsql-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Cochran
metadata.gz.sig CHANGED
Binary file