activerecord-dsql-adapter 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/active_record/connection_adapters/dsql_adapter.rb +39 -2
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ad2818119d3d7093a3ddd37e8931c729ce600b50ed12e5cf6596f0ffa81672e
|
4
|
+
data.tar.gz: bc006c7e000efa466b91e64a4aafae12eb4c9fa2094d3d476c6f2b729e0feee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
39
|
-
|
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
metadata.gz.sig
CHANGED
Binary file
|