Skip to content

Commit

Permalink
add SQL example
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Sep 20, 2023
1 parent aebbfde commit 07e899d
Showing 1 changed file with 40 additions and 25 deletions.
65 changes: 40 additions & 25 deletions src/app/code-editor-demo/file-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,46 @@ const FILES_DATA: FileNode[] = [
name: 'Files',
type: FileNodeType.folder,
children: [
{
name: 'schema.sql',
type: FileNodeType.file,
code: {
language: 'sql',
uri: 'schema.sql',
value: [
'CREATE TABLE dbo.EmployeePhoto (',
' EmployeeId INT NOT NULL PRIMARY KEY,',
' Photo VARBINARY(MAX) FILESTREAM NULL,',
' MyRowGuidColumn UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL UNIQUE DEFAULT NEWID()',
');'
].join('\n')
}
},
{
name: 'component.style.css',
type: FileNodeType.file,
code: {
language: 'css',
uri: 'component.style.css',
value: [
'html {',
' background-color: #e2e2e2;',
' margin: 0;',
' padding: 0;',
'}',
'',
'body {',
' background-color: #fff;',
' border-top: solid 10px #000;',
' color: #333;',
' font-size: .85em;',
' font-family: "Segoe UI","HelveticaNeue-Light", sans-serif;',
' margin: 0;',
' padding: 0;',
'}'
].join('\n')
}
},
{
name: 'json.json',
type: FileNodeType.file,
Expand Down Expand Up @@ -79,31 +119,6 @@ const FILES_DATA: FileNode[] = [
'}'
].join('\n')
}
},
{
name: 'component.style.css',
type: FileNodeType.file,
code: {
language: 'css',
uri: 'component.style.css',
value: [
'html {',
' background-color: #e2e2e2;',
' margin: 0;',
' padding: 0;',
'}',
'',
'body {',
' background-color: #fff;',
' border-top: solid 10px #000;',
' color: #333;',
' font-size: .85em;',
' font-family: "Segoe UI","HelveticaNeue-Light", sans-serif;',
' margin: 0;',
' padding: 0;',
'}'
].join('\n')
}
}
]
},
Expand Down

0 comments on commit 07e899d

Please sign in to comment.