Skip to content

Commit

Permalink
Types: Emulate PostgreSQL's JSON(B) types using CrateDB's OBJECT
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 16, 2024
1 parent 07bba7b commit 28e329d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sqlalchemy_cratedb/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ def visit_ARRAY(self, type_, **kw):
def visit_OBJECT(self, type_, **kw):
return "OBJECT"

def visit_JSON(self, type_, **kw):
return "OBJECT"

def visit_JSONB(self, type_, **kw):
return "OBJECT"


class CrateCompiler(compiler.SQLCompiler):

Expand Down

0 comments on commit 28e329d

Please sign in to comment.