Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for JSON columns? #26

Open
helje5 opened this issue Oct 11, 2023 · 0 comments
Open

Add support for JSON columns? #26

helje5 opened this issue Oct 11, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@helje5
Copy link
Member

helje5 commented Oct 11, 2023

Not quite sure how that would look like. Presumably we'd detect the column type JSON and then allow SQLite JSON operations on it?
How would it look in the associated structure? Expose it as Data, but at least in the Lighter API provide a wrapper that allows direct access?

struct Person {
  var name: String
  var privateAddress: [ UInt8 ] // in raw API?
  var businessAddress: [ UInt8 ] // in raw API?
}

struct Address: Codable {
  var street: String
  var city: String
}

We can't use Codable directly here (and Codable is really slow anyways, so not that desirable).

@helje5 helje5 added enhancement New feature or request question Further information is requested labels Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant