···204204terms of section 4, provided that you also meet all of these
205205conditions:
206206207207-- a) The work must carry prominent notices stating that you modified
208208- it, and giving a relevant date.
209209-- b) The work must carry prominent notices stating that it is
210210- released under this License and any conditions added under
211211- section 7. This requirement modifies the requirement in section 4
212212- to "keep intact all notices".
213213-- c) You must license the entire work, as a whole, under this
214214- License to anyone who comes into possession of a copy. This
215215- License will therefore apply, along with any applicable section 7
216216- additional terms, to the whole of the work, and all its parts,
217217- regardless of how they are packaged. This License gives no
218218- permission to license the work in any other way, but it does not
219219- invalidate such permission if you have separately received it.
220220-- d) If the work has interactive user interfaces, each must display
221221- Appropriate Legal Notices; however, if the Program has interactive
222222- interfaces that do not display Appropriate Legal Notices, your
223223- work need not make them do so.
207207+- a) The work must carry prominent notices stating that you modified
208208+ it, and giving a relevant date.
209209+- b) The work must carry prominent notices stating that it is
210210+ released under this License and any conditions added under
211211+ section 7. This requirement modifies the requirement in section 4
212212+ to "keep intact all notices".
213213+- c) You must license the entire work, as a whole, under this
214214+ License to anyone who comes into possession of a copy. This
215215+ License will therefore apply, along with any applicable section 7
216216+ additional terms, to the whole of the work, and all its parts,
217217+ regardless of how they are packaged. This License gives no
218218+ permission to license the work in any other way, but it does not
219219+ invalidate such permission if you have separately received it.
220220+- d) If the work has interactive user interfaces, each must display
221221+ Appropriate Legal Notices; however, if the Program has interactive
222222+ interfaces that do not display Appropriate Legal Notices, your
223223+ work need not make them do so.
224224225225A compilation of a covered work with other separate and independent
226226works, which are not by their nature extensions of the covered work,
···239239Corresponding Source under the terms of this License, in one of these
240240ways:
241241242242-- a) Convey the object code in, or embodied in, a physical product
243243- (including a physical distribution medium), accompanied by the
244244- Corresponding Source fixed on a durable physical medium
245245- customarily used for software interchange.
246246-- b) Convey the object code in, or embodied in, a physical product
247247- (including a physical distribution medium), accompanied by a
248248- written offer, valid for at least three years and valid for as
249249- long as you offer spare parts or customer support for that product
250250- model, to give anyone who possesses the object code either (1) a
251251- copy of the Corresponding Source for all the software in the
252252- product that is covered by this License, on a durable physical
253253- medium customarily used for software interchange, for a price no
254254- more than your reasonable cost of physically performing this
255255- conveying of source, or (2) access to copy the Corresponding
256256- Source from a network server at no charge.
257257-- c) Convey individual copies of the object code with a copy of the
258258- written offer to provide the Corresponding Source. This
259259- alternative is allowed only occasionally and noncommercially, and
260260- only if you received the object code with such an offer, in accord
261261- with subsection 6b.
262262-- d) Convey the object code by offering access from a designated
263263- place (gratis or for a charge), and offer equivalent access to the
264264- Corresponding Source in the same way through the same place at no
265265- further charge. You need not require recipients to copy the
266266- Corresponding Source along with the object code. If the place to
267267- copy the object code is a network server, the Corresponding Source
268268- may be on a different server (operated by you or a third party)
269269- that supports equivalent copying facilities, provided you maintain
270270- clear directions next to the object code saying where to find the
271271- Corresponding Source. Regardless of what server hosts the
272272- Corresponding Source, you remain obligated to ensure that it is
273273- available for as long as needed to satisfy these requirements.
274274-- e) Convey the object code using peer-to-peer transmission,
275275- provided you inform other peers where the object code and
276276- Corresponding Source of the work are being offered to the general
277277- public at no charge under subsection 6d.
242242+- a) Convey the object code in, or embodied in, a physical product
243243+ (including a physical distribution medium), accompanied by the
244244+ Corresponding Source fixed on a durable physical medium
245245+ customarily used for software interchange.
246246+- b) Convey the object code in, or embodied in, a physical product
247247+ (including a physical distribution medium), accompanied by a
248248+ written offer, valid for at least three years and valid for as
249249+ long as you offer spare parts or customer support for that product
250250+ model, to give anyone who possesses the object code either (1) a
251251+ copy of the Corresponding Source for all the software in the
252252+ product that is covered by this License, on a durable physical
253253+ medium customarily used for software interchange, for a price no
254254+ more than your reasonable cost of physically performing this
255255+ conveying of source, or (2) access to copy the Corresponding
256256+ Source from a network server at no charge.
257257+- c) Convey individual copies of the object code with a copy of the
258258+ written offer to provide the Corresponding Source. This
259259+ alternative is allowed only occasionally and noncommercially, and
260260+ only if you received the object code with such an offer, in accord
261261+ with subsection 6b.
262262+- d) Convey the object code by offering access from a designated
263263+ place (gratis or for a charge), and offer equivalent access to the
264264+ Corresponding Source in the same way through the same place at no
265265+ further charge. You need not require recipients to copy the
266266+ Corresponding Source along with the object code. If the place to
267267+ copy the object code is a network server, the Corresponding Source
268268+ may be on a different server (operated by you or a third party)
269269+ that supports equivalent copying facilities, provided you maintain
270270+ clear directions next to the object code saying where to find the
271271+ Corresponding Source. Regardless of what server hosts the
272272+ Corresponding Source, you remain obligated to ensure that it is
273273+ available for as long as needed to satisfy these requirements.
274274+- e) Convey the object code using peer-to-peer transmission,
275275+ provided you inform other peers where the object code and
276276+ Corresponding Source of the work are being offered to the general
277277+ public at no charge under subsection 6d.
278278279279A separable portion of the object code, whose source code is excluded
280280from the Corresponding Source as a System Library, need not be
···350350add to a covered work, you may (if authorized by the copyright holders
351351of that material) supplement the terms of this License with terms:
352352353353-- a) Disclaiming warranty or limiting liability differently from the
354354- terms of sections 15 and 16 of this License; or
355355-- b) Requiring preservation of specified reasonable legal notices or
356356- author attributions in that material or in the Appropriate Legal
357357- Notices displayed by works containing it; or
358358-- c) Prohibiting misrepresentation of the origin of that material,
359359- or requiring that modified versions of such material be marked in
360360- reasonable ways as different from the original version; or
361361-- d) Limiting the use for publicity purposes of names of licensors
362362- or authors of the material; or
363363-- e) Declining to grant rights under trademark law for use of some
364364- trade names, trademarks, or service marks; or
365365-- f) Requiring indemnification of licensors and authors of that
366366- material by anyone who conveys the material (or modified versions
367367- of it) with contractual assumptions of liability to the recipient,
368368- for any liability that these contractual assumptions directly
369369- impose on those licensors and authors.
353353+- a) Disclaiming warranty or limiting liability differently from the
354354+ terms of sections 15 and 16 of this License; or
355355+- b) Requiring preservation of specified reasonable legal notices or
356356+ author attributions in that material or in the Appropriate Legal
357357+ Notices displayed by works containing it; or
358358+- c) Prohibiting misrepresentation of the origin of that material,
359359+ or requiring that modified versions of such material be marked in
360360+ reasonable ways as different from the original version; or
361361+- d) Limiting the use for publicity purposes of names of licensors
362362+ or authors of the material; or
363363+- e) Declining to grant rights under trademark law for use of some
364364+ trade names, trademarks, or service marks; or
365365+- f) Requiring indemnification of licensors and authors of that
366366+ material by anyone who conveys the material (or modified versions
367367+ of it) with contractual assumptions of liability to the recipient,
368368+ for any liability that these contractual assumptions directly
369369+ impose on those licensors and authors.
370370371371All other non-permissive additional terms are considered "further
372372restrictions" within the meaning of section 10. If the Program as you
···11+import { drizzle } from "drizzle-orm/bun-sqlite";
22+import { Database } from "bun:sqlite";
33+import * as schema from "./schema";
44+55+// Use environment variable for the database path in production
66+const dbPath = process.env.DATABASE_PATH || "./local.db";
77+88+// Create a SQLite database instance using Bun's built-in driver
99+const sqlite = new Database(dbPath);
1010+1111+// Create a Drizzle instance with the database and schema
1212+export const db = drizzle(sqlite, { schema });
1313+1414+// Export the sqlite instance and schema for use in other files
1515+export { sqlite, schema };