Skip to content

Is it possible to override some drift query building logic ? #3067

Answered by simolus3
Bill-Hetherington asked this question in Q&A
Discussion options

You must be logged in to vote

Drift doesn't allow patching the behavior of builtin clauses like LIMIT from outside of the package.

However, I'm happy to take contributions expanding drift support for different dialects. We define a dialect enum here.

/// An enumeration of database systems supported by drift. Only
/// [SqlDialect.sqlite] is officially supported, all others are in an
/// experimental state at the moment.
enum SqlDialect {

This could be expanded to include MSSQL-specific dialects, the implementation of the limit clause (query_builder/components/limit.dart) could then be changed to be aw…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bill-Hetherington
Comment options

Answer selected by Bill-Hetherington
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