0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-07-05 21:13:43 +00:00
Files
libsql/libsql-server/src/database/replica.rs
ad hoc c63fe26117 Allow multiple namespaces types to be stored in the same NamespaceStore (#1083)
* introduce `Database` enum

stores different kinds of databases int the same type, and multiplex the
connection type the same way.

* move NamespaceName to own module

* move NamespaceStore to own module

- Namespace store is not generic over the Namespace anymore
- create method takes a config
- simplify loading namespaces

* remove NamespaceMaker, make generic NamespaceConfig

* unify Namespace kinds

Namespace is not generic on db type anymore, but used the multiplexed
database types instead.

* fix forking

* add `map` method to MakeConnection

allows mapping the connection type, when wrapping it in database/mod.rs

* move connection time tracking to the proxy module

where it's being used

* remove generics

* use NamespaceName fro share_schema_name

* simplify server kind configuration.

* remove leftover debug
2024-02-27 13:20:37 +00:00

750 B