5일차 과제

김태원·2023년 4월 1일
0

MariaDB와 MySQL 모두 오픈 소스 관계형 데이터베이스 관리 시스템(RDBMS)입니다.

개발: MySQL은 Sun Microsystems(현재 Oracle)에서 개발되었습니다. 반면에 MariaDB는 MySQL의 창시자 중 한 명인 Michael Widenius가 MySQL을 인수하기 전에 만든 포크(fork) 버전입니다.

라이선스: MariaDB는 GPL, LGPL 및 BSD와 같은 여러 라이선스로 제공됩니다. 반면에 MySQL은 GPL과 상용 라이선스를 사용합니다.

스토리지 엔진: MariaDB는 일부 엔진을 MySQL에서 제거하고 자체 엔진을 추가하여 성능을 개선했습니다. 또한 MariaDB에는 MySQL에는 없는 스토리지 엔진이 포함되어 있습니다.

기능: MariaDB는 MySQL보다 더 많은 기능을 제공합니다. 예를 들어, MariaDB는 JSON, XML, GIS 및 열 저장소 열 지향 스토리지 엔진을 지원합니다.

퍼포먼스: MariaDB는 MySQL보다 더 나은 퍼포먼스를 제공합니다. 특히, MariaDB는 InnoDB 스토리지 엔진을 개선하여 더 빠른 쿼리 실행 및 트랜잭션 처리를 지원합니다.

커뮤니티: MariaDB는 MySQL과 달리 더 개방적이고 활발한 커뮤니티를 가지고 있습니다. 이 커뮤니티는 MariaDB의 개발에 기여하고 사용자들의 문제를 해결하는 등 다양한 방법으로 도움을 제공합니다.


import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
drawer: Drawer(
child: ListView(
padding: EdgeInsets.all(5),
children: [
Container(
decoration: BoxDecoration(border: Border(bottom: BorderSide())),
child: ListTile(
leading: CircleAvatar(
child: CircleAvatar(backgroundColor: Colors.green),
),
title: Text('스나이퍼팩토리'),
subtitle: Text('안녕하세요, 스팩입니다'),
),
),
ListTile(title: Text('홈'), subtitle: Text('홈으로 이동하기')),
ListTile(title: Text('커뮤니티'), subtitle: Text('커뮤니티로 이동하기')),
SizedBox(
height: 500,
),
ListTile(
title: Text('로그아웃'),
subtitle: Text('로그아웃합니다.'),
trailing: Icon(Icons.logout),
),
],
),
),
));
}
}


import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed, //네비게이션 타입
selectedItemColor: Colors.pink,
items: [
BottomNavigationBarItem(
icon: Icon(Icons.home),
label: '홈',
),
BottomNavigationBarItem(
icon: Icon(Icons.people),
label: '친구',
),
BottomNavigationBarItem(
icon: Icon(Icons.video_call),
label: 'Watch',
),
BottomNavigationBarItem(
icon: Icon(Icons.verified_user),
label: '프로필',
),
BottomNavigationBarItem(
icon: Icon(Icons.notifications),
label: '알림',
),
BottomNavigationBarItem(
icon: Icon(Icons.circle),
label: '메뉴',
),
],
),
));
}
}


import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton: FloatingActionButton.extended(
backgroundColor: Colors.pink,
label: Text('지금 예약하기'),
onPressed: () {},
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
selectedItemColor: Colors.blue,

      items: <BottomNavigationBarItem>[
        BottomNavigationBarItem(
          icon: Icon(Icons.home),
          label: '홈',
        ),
        BottomNavigationBarItem(
          icon: Icon(Icons.block),
          label: '차단',
        ),
        BottomNavigationBarItem(
          icon: Icon(Icons.settings),
          label: '설정',
        )
      ],
    ),
  ),
);

}
}


import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Column(
children: [
Container(
width: 500,
height: 200,
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage('https://picsum.photos/400/500'),
fit: BoxFit.cover)),
child: Text(
style: TextStyle(
color: Colors.white,
fontSize: 25,
fontWeight: FontWeight.bold),
'CGB (영화 예매)'),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
'속초 여행을 떠나면서'),
Row(
children: [
Icon(Icons.remove_red_eye),
Text('232회'),
SizedBox(
width: 10,
)
],
)
],
),
SizedBox(
height: 10,
),
Container(
width: 400,
height: 100,
decoration:
BoxDecoration(border: Border(bottom: BorderSide(width: 0.5))),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
width: 10,
),
CircleAvatar(
radius: 20,
backgroundImage:
NetworkImage('https://picsum.photos/50/50'),
),
SizedBox(
width: 10,
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('''오류동 멋쟁이
스나이퍼팩토리 누군가''')
],
),
SizedBox(
width: 100,
),
Text('3시간전'),
],
),
),
SizedBox(
height: 100,
),
Text(
style: TextStyle(fontSize: 13),
'방지하는 열락의 끓는 일월과 풀이 그러므로 고행을 청춘의 현저하게 봄바람이다. 전인 수 구하지 석가는 따뜻한 트고, 보라. 있음으로써 광야에서 그들의 뛰노는 기관과 봄바람이다. 것은 피가 우리 그들은 이것이야말로 있음으로써 사랑의 주는 있는 것이다. 그들은 이상 이는 교향악이다. 같이, 청춘의 하는 이성은 청춘에서만 청춘의 품고 것이다. 보는 많이 얼마나 황금시대의 피부가 인간에 운다. 사랑의 그들의 과실이 우는 이상이 인생에 보라. 옷을 수 쓸쓸한 지혜는 꾸며 이상은 이 반짝이는 것이다. 생명을 풍부하게 소리다.이것은 구하지 품에 가치를 새가 황금시대다.'),
],
),
)),
);
}
}

profile
개발자 입니다

0개의 댓글