Skip to content

How to write database adapter for specific database? #2269

Answered by aeneasr
ahmed-yasen-va asked this question in Q&A
Discussion options

You must be logged in to vote

We no longer support custom adapters due to the complexity involved. Writing your own adapter is a bad idea:

This topic has come up time and time again, the original plugin interface was written to support a certain use case we no longer support.

Writing your own database adapter is a very bad idea and serious security issue because:

  1. Our internal interfaces change often, at least with every schema change. Writing your own adapter means in 99.9% of the cases that you will stay with the version your adapter works for. This is, for obvious reasons, terrible.
  2. The SQL datastore supports advanced logic such as ON CASCADE statements that are necessary to implement certain security-related work…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@aeneasr
Comment options

@isra270
Comment options

@ahmed-yasen-va
Comment options

@aeneasr
Comment options

@isra270
Comment options

Answer selected by aeneasr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants