Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 2.25 KB

sql_backends.md

File metadata and controls

57 lines (35 loc) · 2.25 KB

SQL Backends

For stackql, an SQL backend is an abstraction that executes SQL statements. The workload is is light on for updates and even lighter for read-write contention.

At present, traditional RDBMS systems such as sqlite and postgres are used to implment SQL backends. However, there is no reason that a non-traditional, analytics optimised system can not be used at least in part.

Backends

SQLite

The default implementation is embedded SQLite. SQLite does not have a wire protocol or TCP-native version.

Postgres

Postgres over TCP

Embedded Postgres

https://github.com/fergusstrange/embedded-postgres

Postgres integration bugs

Postgres failing tests checklist:

  • Google IAM Policy Agg
  • Google Join Plus String Concatenated Select Expressions
  • Okta Users Select Simple Paginated
  • AWS EC2 Volumes Select Simple
  • GitHub SAML Identities Select GraphQL
  • GitHub Repository With Functions Select
  • Join GCP Okta Cross Provider JSON Dependent Keyword in Table Name
  • K8S Nodes Select Leveraging JSON Path
  • Data Flow Sequential Join Select With Functions Github
  • Shell Session Simple
  • PG Session Postgres Client Typed Queries
  • PG Session Postgres Client V2 Typed Queries

Technical notes

Golang SQL drivers

How to use drivers:

List of drivers:

Data Source Name (DSN) strings