summaryrefslogtreecommitdiff
path: root/extension/examples/MyProject/src/index.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-27 23:53:08 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-27 23:53:08 -0700
commit4411dc39c1ec51bfc96c4059aa555313e825c2f7 (patch)
treef88425c9c5b407d53cc49645e13ebbb52c9fb455 /extension/examples/MyProject/src/index.ts
parent55e231b4f51f47757ab5840363fbc097d6ebf6e5 (diff)
downloadsncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.gz
sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.bz2
sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.zip
v73 was too large, removing examples, .vscignore
Diffstat (limited to 'extension/examples/MyProject/src/index.ts')
-rw-r--r--extension/examples/MyProject/src/index.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/extension/examples/MyProject/src/index.ts b/extension/examples/MyProject/src/index.ts
deleted file mode 100644
index 9ffd7282..00000000
--- a/extension/examples/MyProject/src/index.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { AppDataSource } from "./data-source"
-import { User } from "./entity/User"
-
-AppDataSource.initialize().then(async () => {
-
- console.log("Inserting a new user into the database...")
- const user = new User()
- user.firstName = "Timber"
- user.lastName = "Saw"
- user.age = 25
- await AppDataSource.manager.save(user)
- console.log("Saved a new user with id: " + user.id)
-
- console.log("Loading users from the database...")
- const users = await AppDataSource.manager.find(User)
- console.log("Loaded users: ", users)
-
- console.log("Here you can setup and run express / fastify / any other framework.")
-
-}).catch(error => console.log(error))