[{"data":1,"prerenderedAt":251},["ShallowReactive",2],{"navigation_docs":3,"-contributing-local-development":69,"-contributing-local-development-surround":248},[4,20,60],{"title":5,"path":6,"stem":7,"children":8,"page":19},"Getting Started","/getting-started","1.getting-started",[9,14],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","/getting-started/introduction","1.getting-started/1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","/getting-started/installation","1.getting-started/2.installation","i-lucide-download",false,{"title":21,"path":22,"stem":23,"children":24,"page":19},"Models","/models","2.models",[25,30,35,40,45,50,55],{"title":26,"path":27,"stem":28,"icon":29},"Defining Models","/models/defining-models","2.models/1.defining-models","i-lucide-database",{"title":31,"path":32,"stem":33,"icon":34},"Retrieving Models","/models/retrieving","2.models/2.retrieving","i-lucide-database-search",{"title":36,"path":37,"stem":38,"icon":39},"Inserting & Updating Models","/models/inserting-and-updating","2.models/3.inserting-and-updating","i-lucide-between-horizontal-start",{"title":41,"path":42,"stem":43,"icon":44},"Deleting Models","/models/deleting","2.models/4.deleting","i-lucide-trash",{"title":46,"path":47,"stem":48,"icon":49},"Relationships","/models/relationships","2.models/5.relationships","i-lucide-share-2",{"title":51,"path":52,"stem":53,"icon":54},"Events","/models/events","2.models/6.events","i-lucide-bell",{"title":56,"path":57,"stem":58,"icon":59},"Migrations & Seeders","/models/migrations-and-seeders","2.models/7.migrations-and-seeders","i-lucide-wrench",{"title":61,"path":62,"stem":63,"children":64,"page":19},"Contributing","/contributing","3.contributing",[65],{"title":66,"path":67,"stem":68},"Local Development","/contributing/local-development","3.contributing/1.local-development",{"id":70,"title":66,"body":71,"description":105,"extension":242,"links":243,"meta":244,"navigation":245,"path":67,"seo":246,"stem":68,"__hash__":247},"docs/3.contributing/1.local-development.md",{"type":72,"value":73,"toc":234},"minimark",[74,79,83,95,99,121,125,145,149,161,164,176,180,183,205,208,212,215,230],[75,76,78],"h2",{"id":77},"set-up-your-database","Set up your database",[80,81,82],"p",{},"The tests in this package are currently configured to work on a Postgres database. To run the tests, you'll need to have a Postgres database set up and running to connect to.",[80,84,85,86,90,91,94],{},"Copy the ",[87,88,89],"code",{},".env.example"," file to ",[87,92,93],{},".env"," and fill in your database connection details.",[75,96,98],{"id":97},"install-package-dependencies-with-pnpm","Install package dependencies with pnpm",[100,101,106],"pre",{"className":102,"code":103,"language":104,"meta":105,"style":105},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm install\n","sh","",[87,107,108],{"__ignoreMap":105},[109,110,113,117],"span",{"class":111,"line":112},"line",1,[109,114,116],{"class":115},"sBMFI","pnpm",[109,118,120],{"class":119},"sfazB"," install\n",[75,122,124],{"id":123},"run-database-migrations-and-seeds","Run database migrations and seeds",[100,126,128],{"className":102,"code":127,"language":104,"meta":105,"style":105},"pnpm db:migrate\npnpm db:seed\n",[87,129,130,137],{"__ignoreMap":105},[109,131,132,134],{"class":111,"line":112},[109,133,116],{"class":115},[109,135,136],{"class":119}," db:migrate\n",[109,138,140,142],{"class":111,"line":139},2,[109,141,116],{"class":115},[109,143,144],{"class":119}," db:seed\n",[75,146,148],{"id":147},"run-tests-with-vitest","Run tests with vitest",[100,150,152],{"className":102,"code":151,"language":104,"meta":105,"style":105},"pnpm test\n",[87,153,154],{"__ignoreMap":105},[109,155,156,158],{"class":111,"line":112},[109,157,116],{"class":115},[109,159,160],{"class":119}," test\n",[80,162,163],{},"You can also reset the database and re-run the tests with a single command:",[100,165,167],{"className":102,"code":166,"language":104,"meta":105,"style":105},"pnpm test:reset\n",[87,168,169],{"__ignoreMap":105},[109,170,171,173],{"class":111,"line":112},[109,172,116],{"class":115},[109,174,175],{"class":119}," test:reset\n",[75,177,179],{"id":178},"testing-the-package-locally","Testing the package locally",[80,181,182],{},"You can bundle this package for local testing as an independent package without publishing to npm. This is useful for making sure that all peer dependencies are correct and that the package works as expected when installed as a dependency in another project.",[184,185,186,193,199],"ol",{},[187,188,189,190],"li",{},"Build the package with ",[87,191,192],{},"pnpm build",[187,194,195,196],{},"Bundle the package with ",[87,197,198],{},"pnpm pack",[187,200,201,202],{},"Install the tarball in your project with ",[87,203,204],{},"pnpm install /path/to/tarball.tgz",[80,206,207],{},"When you want to update the package in your project, you'll need to repeat these steps, which should also refresh any dependencies that have changed.",[75,209,211],{"id":210},"docs","Docs",[80,213,214],{},"Run the docs server locally with hot-reloading for development:",[100,216,218],{"className":102,"code":217,"language":104,"meta":105,"style":105},"pnpm run dev:docs\n",[87,219,220],{"__ignoreMap":105},[109,221,222,224,227],{"class":111,"line":112},[109,223,116],{"class":115},[109,225,226],{"class":119}," run",[109,228,229],{"class":119}," dev:docs\n",[231,232,233],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":105,"searchDepth":139,"depth":139,"links":235},[236,237,238,239,240,241],{"id":77,"depth":139,"text":78},{"id":97,"depth":139,"text":98},{"id":123,"depth":139,"text":124},{"id":147,"depth":139,"text":148},{"id":178,"depth":139,"text":179},{"id":210,"depth":139,"text":211},"md",null,{},true,{"description":105},"6blhdjPbP_KzN-g4gTgCZyhx06TvQVba7kPUJNtajbM",[249,243],{"title":56,"path":57,"stem":58,"description":250,"icon":59,"children":-1},"Defining migrations and seeders using kysely-ctl and Vasta",1778782559659]