Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
d60e8b85
Kaydet (Commit)
d60e8b85
authored
Ock 09, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added DatabaseFeatures.is_postgresql_9_5 to avoid repetition.
üst
d95f1e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
features.py
django/db/backends/postgresql/features.py
+5
-12
No files found.
django/db/backends/postgresql/features.py
Dosyayı görüntüle @
d60e8b85
...
...
@@ -52,17 +52,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_aggregate_filter_clause
=
True
@cached_property
def
has_select_for_update_skip_locked
(
self
):
def
is_postgresql_9_5
(
self
):
return
self
.
connection
.
pg_version
>=
90500
@cached_property
def
has_brin_index_support
(
self
):
return
self
.
connection
.
pg_version
>=
90500
@cached_property
def
has_jsonb_agg
(
self
):
return
self
.
connection
.
pg_version
>=
90500
@cached_property
def
has_gin_pending_list_limit
(
self
):
return
self
.
connection
.
pg_version
>=
90500
has_select_for_update_skip_locked
=
is_postgresql_9_5
has_brin_index_support
=
is_postgresql_9_5
has_jsonb_agg
=
is_postgresql_9_5
has_gin_pending_list_limit
=
is_postgresql_9_5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment