tursodatabase / libsql-client-rs

libSQL Rust client library can be used to communicate with sqld natively over HTTP protocol with native Rust interface.
MIT License
75 stars 29 forks source link

Use a config struct instead of separate parameters for URL and JWT #4

Closed CodingDoug closed 1 year ago

CodingDoug commented 1 year ago

This is what we have in TS land:

export type Config = {
    url: string;
    authToken?: string;
};

Would be great if the rust struct had members with the same names for consistency.

penberg commented 1 year ago

Yeah, let's make new_client() take a Config struct as a parameter.