Skip to content

Custom backend resources/outline? #4619

Answered by weiznich
markalexander asked this question in Q&A
Discussion options

You must be logged in to vote

(a) What's the general amount of work involved in making a custom connection + backend? Can I just implement any arbitary subset of the dialect to meet my needs, or does Diesel require a certain coverage of implementation to work at all?

There is some general documentation on that topic here and here. You need to implement most of the traits listed there to get basic functionality. You need at least LoadConnection, Connection, Backend, SqlDialect, all the HasSqlType’, FromSqlandToSqlimpls. Likely you also needBindCollectorandQueryBuilderif you cannot use and existing one. Depending on the choices you make while implementing them (especiallySqlDialectandHasSqlType`) additional impls migh…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@markalexander
Comment options

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