Created
May 17, 2024 21:45
-
-
Save PaulieScanlon/30b90231a7f497e9a9c7ca30d7a3f6da to your computer and use it in GitHub Desktop.
Example analytics query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const results = await db | |
.select({ | |
city: analytics.city, | |
country: analytics.country, | |
flag: analytics.flag, | |
}) | |
.from(analytics) | |
.where(eq(analytics.country, 'US')) | |
.orderBy(analytics.date) | |
.limit(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment